home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 15 / CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso / CUCD / Graphics / Ghostscript / source / unix-cc.mak < prev    next >
Encoding:
Text File  |  1997-06-22  |  194.2 KB  |  5,659 lines

  1. #    Copyright (C) 1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # Makefile fragment containing the current revision identification.
  16.  
  17. # Define the name of this makefile.
  18. VERSION_MAK=version.mak
  19.  
  20. # Major and minor version numbers.
  21. # MINOR0 is different from MINOR only if MINOR is a single digit.
  22. GS_VERSION_MAJOR=5
  23. GS_VERSION_MINOR=01
  24. GS_VERSION_MINOR0=01
  25. # Revision date: year x 10000 + month x 100 + day.
  26. GS_REVISIONDATE=19970622
  27.  
  28. # Derived values
  29. GS_VERSION=$(GS_VERSION_MAJOR)$(GS_VERSION_MINOR0)
  30. GS_DOT_VERSION=$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR)
  31. GS_REVISION=$(GS_VERSION)
  32. #    Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  33. # This file is part of Aladdin Ghostscript.
  34. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  35. # or distributor accepts any responsibility for the consequences of using it,
  36. # or for whether it serves any particular purpose or works at all, unless he
  37. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  38. # License (the "License") for full details.
  39. # Every copy of Aladdin Ghostscript must include a copy of the License,
  40. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  41. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  42. # under certain conditions described in the License.  Among other things, the
  43. # License requires that the copyright notice and this notice be preserved on
  44. # all copies.
  45.  
  46. # makefile for Unix/cc/X11 configuration.
  47.  
  48. #****************************************************************#
  49. #   If you want to change options, DO NOT edit unix-cc.mak       #
  50. #   or makefile.  Edit cc-head.mak and run the tar_cat script.   #
  51. #****************************************************************#
  52.  
  53. # ------------------------------- Options ------------------------------- #
  54.  
  55. ####### The following are the only parts of the file you should need to edit.
  56.  
  57. # ------ Generic options ------ #
  58.  
  59. # Define the installation commands and target directories for
  60. # executables and files.  The commands are only relevant to `make install';
  61. # the directories also define the default search path for the
  62. # initialization files (gs_*.ps) and the fonts.
  63.  
  64. INSTALL = install -c
  65. INSTALL_PROGRAM = $(INSTALL) -m 755
  66. INSTALL_DATA = $(INSTALL) -m 644
  67.  
  68. prefix = /usr/local
  69. exec_prefix = $(prefix)
  70. bindir = $(exec_prefix)/bin
  71. scriptdir = $(bindir)
  72. mandir = $(prefix)/man
  73. man1ext = 1
  74. man1dir = $(mandir)/man$(man1ext)
  75. datadir = $(prefix)/share
  76. gsdir = $(datadir)/ghostscript
  77. gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
  78.  
  79. docdir=$(gsdatadir)/doc
  80. exdir=$(gsdatadir)/examples
  81. GS_DOCDIR=$(docdir)
  82.  
  83. # Define the default directory/ies for the runtime
  84. # initialization and font files.  Separate multiple directories with a :.
  85.  
  86. GS_LIB_DEFAULT=$(gsdatadir):$(gsdir)/fonts
  87.  
  88. # Define whether or not searching for initialization files should always
  89. # look in the current directory first.  This leads to well-known security
  90. # and confusion problems, but users insist on it.
  91. # NOTE: this also affects searching for files named on the command line:
  92. # see the "File searching" section of use.txt for full details.
  93. # Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
  94.  
  95. SEARCH_HERE_FIRST=1
  96.  
  97. # Define the name of the interpreter initialization file.
  98. # (There is no reason to change this.)
  99.  
  100. GS_INIT=gs_init.ps
  101.  
  102. # Choose generic configuration options.
  103.  
  104. # -DDEBUG
  105. #    includes debugging features (-Z switch) in the code.
  106. #      Code runs substantially slower even if no debugging switches
  107. #      are set.
  108. # -DNOPRIVATE
  109. #    makes private (static) procedures and variables public,
  110. #      so they are visible to the debugger and profiler.
  111. #      No execution time or space penalty.
  112.  
  113. #GENOPT=-DDEBUG
  114. GENOPT=
  115.  
  116. # Define the name of the executable file.
  117.  
  118. GS=gs
  119.  
  120. # Define the directory where the IJG JPEG library sources are stored,
  121. # and the major version of the library that is stored there.
  122. # You may need to change this if the IJG library version changes.
  123. # See jpeg.mak for more information.
  124.  
  125. JSRCDIR=jpeg-6a
  126. JVERSION=6
  127.  
  128. # Define the directory where the PNG library sources are stored,
  129. # and the version of the library that is stored there.
  130. # You may need to change this if the libpng version changes.
  131. # See libpng.mak for more information.
  132.  
  133. PSRCDIR=libpng
  134. PVERSION=96
  135.  
  136. # Choose whether to use a shared version of the PNG library, and if so,
  137. # what its name is.
  138. # See gs.mak and make.txt for more information.
  139.  
  140. SHARE_LIBPNG=0
  141. LIBPNG_NAME=png
  142.  
  143. # Define the directory where the zlib sources are stored.
  144. # See zlib.mak for more information.
  145.  
  146. ZSRCDIR=zlib
  147.  
  148. # Choose whether to use a shared version of the zlib library, and if so,
  149. # what its name is (usually libz, but sometimes libgz).
  150. # See gs.mak and make.txt for more information.
  151.  
  152. SHARE_ZLIB=0
  153. #ZLIB_NAME=gz
  154. ZLIB_NAME=z
  155.  
  156. # Define how to build the library archives.  (These are not used in any
  157. # standard configuration.)
  158.  
  159. AR=ar
  160. ARFLAGS=qc
  161. RANLIB=ranlib
  162.  
  163. # Define the configuration ID.  Read gs.mak carefully before changing this.
  164.  
  165. CONFIG=
  166.  
  167. # ------ Platform-specific options ------ #
  168.  
  169. # Define the name of the linker for the final link step.
  170. # Normally this is the same as the C compiler.
  171.  
  172. CCLD=$(CC)
  173.  
  174. # Define the other compilation flags.  Add at most one of the following:
  175. #    -DBSD4_2 for 4.2bsd systems.
  176. #    -DSYSV for System V or DG/UX.
  177. #     -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  178. #       or any System III Unix, or System V release 3-or-older Unix.
  179. #       Also add -Xa if your compiler accepts it.
  180. #    -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
  181. #    -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
  182. # XCFLAGS can be set from the command line.
  183. XCFLAGS=
  184.  
  185. CFLAGS=-O $(XCFLAGS)
  186.  
  187. # Define platform flags for ld.
  188. # SunOS and some others want -X; Ultrix wants -x.
  189. # SunOS 4.n may need -Bstatic.
  190. # XLDFLAGS can be set from the command line.
  191. XLDFLAGS=
  192.  
  193. LDFLAGS=$(XLDFLAGS)
  194.  
  195. # Define any extra libraries to link into the executable.
  196. # ISC Unix 2.2 wants -linet.
  197. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  198. # SVR4 may need -lnsl.
  199. # (Libraries required by individual drivers are handled automatically.)
  200.  
  201. EXTRALIBS=
  202.  
  203. # Define the include switch(es) for the X11 header files.
  204. # This can be null if handled in some other way (e.g., the files are
  205. # in /usr/include, or the directory is supplied by an environment variable);
  206. # in particular, SCO Xenix, Unix, and ODT just want
  207. #XINCLUDE=
  208. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  209. # not in $(XINCLUDE).
  210.  
  211. XINCLUDE=-I/usr/local/X/include
  212.  
  213. # Define the directory/ies and library names for the X11 library files.
  214. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
  215. # (dynamic libraries on SVR4) and should not include -L.
  216. # Both can be null if these files are in the default linker search path;
  217. # in particular, SCO Xenix, Unix, and ODT just want
  218. #XLIBDIRS=
  219. # X11R6 (on any platform) may need
  220. #XLIBS=Xt SM ICE Xext X11
  221.  
  222. XLIBDIRS=-L/usr/local/X/lib
  223. XLIBDIR=
  224. XLIBS=Xt Xext X11
  225.  
  226. # Define whether this platform has floating point hardware:
  227. #    FPU_TYPE=2 means floating point is faster than fixed point.
  228. # (This is the case on some RISCs with multiple instruction dispatch.)
  229. #    FPU_TYPE=1 means floating point is at worst only slightly slower
  230. # than fixed point.
  231. #    FPU_TYPE=0 means that floating point may be considerably slower.
  232. #    FPU_TYPE=-1 means that floating point is always much slower than
  233. # fixed point.
  234.  
  235. FPU_TYPE=1
  236.  
  237. # ------ Devices and features ------ #
  238.  
  239. # Choose the language feature(s) to include.  See gs.mak for details.
  240.  
  241. FEATURE_DEVS=level2.dev pdf.dev pipe.dev
  242.  
  243. # Choose whether to compile the .ps initialization files into the executable.
  244. # See gs.mak for details.
  245.  
  246. COMPILE_INITS=0
  247.  
  248. # Choose whether to store band lists on files or in memory.
  249. # The choices are 'file' or 'memory'.
  250.  
  251. BAND_LIST_STORAGE=file
  252.  
  253. # Choose which compression method to use when storing band lists in memory.
  254. # The choices are 'lzw' or 'zlib'.  lzw is not recommended, because the
  255. # LZW-compatible code in Ghostscript doesn't actually compress its input.
  256.  
  257. BAND_LIST_COMPRESSOR=zlib
  258.  
  259. # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
  260. # See gs.mak and sfxfd.c for more details.
  261.  
  262. FILE_IMPLEMENTATION=stdio
  263.  
  264. # Choose the device(s) to include.  See devs.mak for details.
  265.  
  266. DEVICE_DEVS=x11.dev x11alpha.dev x11cmyk.dev x11mono.dev
  267. DEVICE_DEVS1=
  268. DEVICE_DEVS2=
  269. DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet4.dev
  270. # Sun's cc can't compile gdevcdj.c.
  271. #DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev pj.dev pjxl.dev pjxl300.dev
  272. DEVICE_DEVS4=
  273. DEVICE_DEVS5=
  274. DEVICE_DEVS6=bj10e.dev bj200.dev bjc600.dev bjc800.dev
  275. DEVICE_DEVS6=
  276. DEVICE_DEVS7=faxg3.dev faxg32d.dev faxg4.dev
  277. DEVICE_DEVS8=jpeg.dev jpeggray.dev pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev
  278. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
  279. DEVICE_DEVS10=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
  280. DEVICE_DEVS11=tiff12nc.dev tiff24nc.dev
  281. DEVICE_DEVS12=psmono.dev psgray.dev bit.dev bitrgb.dev bitcmyk.dev
  282. DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
  283. DEVICE_DEVS14=
  284. DEVICE_DEVS15=pdfwrite.dev pswrite.dev epswrite.dev pxlmono.dev pxlcolor.dev
  285.  
  286. # ---------------------------- End of options --------------------------- #
  287.  
  288. # Define the name of the partial makefile that specifies options --
  289. # used in dependencies.
  290.  
  291. MAKEFILE=cc-head.mak
  292.  
  293. # Define the ANSI-to-K&R dependency.
  294.  
  295. # This should be ansi2knr$(XEAUX), or $(ANSI2KNR_XE), but these macros
  296. # haven't been defined yet, and some buggy 'make' programs expand macros in
  297. # definitions at the time of definition rather than at the time of use.
  298. AK=ansi2knr
  299.  
  300. # Define the compilation rules and flags.
  301.  
  302. CCC=$(SHP)ccgs "$(CC) $(CCFLAGS) -c"
  303. # We compile ansi2knr, and only ansi2knr, unmodified.
  304. CCA2K=$(CC)
  305. CCAUX=$(SHP)ccgs "$(CC)"
  306. CCLEAF=$(CCC)
  307.  
  308. # --------------------------- Generic makefile ---------------------------- #
  309.  
  310. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  311. # is generic.  tar_cat concatenates all these together.
  312. #    Copyright (C) 1990, 1993, 1996 Aladdin Enterprises.  All rights reserved.
  313. # This file is part of Aladdin Ghostscript.
  314. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  315. # or distributor accepts any responsibility for the consequences of using it,
  316. # or for whether it serves any particular purpose or works at all, unless he
  317. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  318. # License (the "License") for full details.
  319. # Every copy of Aladdin Ghostscript must include a copy of the License,
  320. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  321. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  322. # under certain conditions described in the License.  Among other things, the
  323. # License requires that the copyright notice and this notice be preserved on
  324. # all copies.
  325.  
  326. # Partial makefile common to all Unix configurations.
  327.  
  328. # This part of the makefile gets inserted after the compiler-specific part
  329. # (xxx-head.mak) and before gs.mak and devs.mak.
  330.  
  331. # ----------------------------- Generic stuff ----------------------------- #
  332.  
  333. # Define the platform name.  For a "stock" System V platform,
  334. # use sysv_ instead of unix_.
  335.  
  336. PLATFORM=unix_
  337.  
  338. # Define the syntax for command, object, and executable files.
  339.  
  340. CMD=
  341. O=-o ./
  342. OBJ=o
  343. XE=
  344. XEAUX=
  345.  
  346. # Define the current directory prefix and command invocations.
  347.  
  348. CAT=cat
  349. D=/
  350. EXPP=
  351. EXP=./
  352. SHELL=/bin/sh
  353. SH=$(SHELL)
  354. SHP=$(SH) $(EXP)
  355.  
  356. # Define generic commands.
  357.  
  358. CP_=cp
  359. RM_=rm -f
  360. RMN_=rm -f
  361.  
  362. # Define the arguments for genconf.
  363.  
  364. CONFILES=-p "%s&s&&" -pl "&-l%s&s&&" -pL "&-L%s&s&&" -ol $(ld_tr)
  365.  
  366. # Define the compilation rules and flags.
  367.  
  368. CCFLAGS=$(GENOPT) $(CFLAGS)
  369.  
  370. .c.o: $(AK)
  371.     $(CCC) $*.c
  372.  
  373. CCCF=$(CCC)
  374. CCD=$(CCC)
  375. CCINT=$(CCC)
  376.  
  377. BEGINFILES=
  378. CCBEGIN=$(CCC) *.c
  379.  
  380. # Patch a couple of PC-specific things that aren't relevant to Unix builds,
  381. # but that cause `make' to produce warnings.
  382.  
  383. BGIDIR=***UNUSED***
  384. PCFBASM=
  385. #    Copyright (C) 1989, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  386. # This file is part of Aladdin Ghostscript.
  387. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  388. # or distributor accepts any responsibility for the consequences of using it,
  389. # or for whether it serves any particular purpose or works at all, unless he
  390. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  391. # License (the "License") for full details.
  392. # Every copy of Aladdin Ghostscript must include a copy of the License,
  393. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  394. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  395. # under certain conditions described in the License.  Among other things, the
  396. # License requires that the copyright notice and this notice be preserved on
  397. # all copies.
  398.  
  399. # Generic makefile, common to all platforms.
  400. # The platform-specific makefiles `include' this file.
  401. # They define the following symbols:
  402. #    GS - the name of the executable (without the extension, if any).
  403. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  404. #        initialization and font files at run time.
  405. #    SEARCH_HERE_FIRST - the default setting of -P (whether or not to
  406. #        look for files in the current directory first).
  407. #    GS_DOCDIR - the directory where documentation will be available
  408. #        at run time.
  409. #    JSRCDIR - the directory where the IJG JPEG library source code
  410. #        is stored (at compilation time).
  411. #    JVERSION - the major version number of the IJG JPEG library.
  412. #    PSRCDIR, PVERSION - the same for libpng.
  413. #    ZSRCDIR - the same for zlib.
  414. #    SHARE_LIBPNG - normally 0; if set to 1, asks the linker to use
  415. #        an existing compiled libpng (-lpng) instead of compiling and
  416. #        linking libpng explicitly.
  417. #    LIBPNG_NAME, the name of the shared libpng, currently always
  418. #        png (libpng, -lpng).
  419. #    SHARE_ZLIB - normally 0; if set to 1, asks the linker to use
  420. #        an existing compiled zlib (-lgz or -lz) instead of compiling
  421. #        and linking libgz/libz explicitly.
  422. #    ZLIB_NAME - the name of the shared zlib, either gz (for libgz, -lgz)
  423. #        or z (for libz, -lz).
  424. #    CONFIG - a configuration ID, added at the request of a customer,
  425. #        that is supposed to help in maintaining multiple variants in
  426. #        a single directory.  Normally this is an empty string;
  427. #        it may be any string that is legal as part of a file name.
  428. #    DEVICE_DEVS - the devices to include in the executable.
  429. #        See devs.mak for details.
  430. #    DEVICE_DEVS1...DEVICE_DEVS15 - additional devices, if the definition
  431. #        of DEVICE_DEVS doesn't fit on one line.  See devs.mak for details.
  432. #    FEATURE_DEVS - what features to include in the executable.
  433. #        Normally this is one of:
  434. #            level1 - a standard PostScript Level 1 language
  435. #            interpreter.
  436. #            level2 - a standard PostScript Level 2 language
  437. #            interpreter.
  438. #            pdf - a PDF-capable interpreter.
  439. #        You may include both level1 and pdf, or both level2 and pdf.
  440. #        The following feature may be added to either of the standard
  441. #        configurations:
  442. #            ccfonts - precompile fonts into C, and link them
  443. #            with the executable.  See fonts.txt for details.
  444. #        The remaining features are of interest primarily to developers
  445. #        who want to "mix and match" features to create custom
  446. #        configurations:
  447. #            dps - (partial) support for Display PostScript extensions:
  448. #            see language.txt for details.
  449. #            btoken - support for binary token encodings.
  450. #            Included automatically in the dps and level2 features.
  451. #            cidfont - (currently partial) support for CID-keyed fonts.
  452. #            color - support for the Level 1 CMYK color extensions.
  453. #            Included automatically in the dps and level2 features.
  454. #            compfont - support for composite (type 0) fonts.
  455. #            Included automatically in the level2 feature.
  456. #            dct - support for DCTEncode/Decode filters.
  457. #            Included automatically in the level2 feature.
  458. #            epsf - support for recognizing and skipping the binary
  459. #            header of MS-DOS EPSF files.
  460. #            filter - support for Level 2 filters (other than eexec,
  461. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  462. #            RunLengthEncode/Decode, and SubFileDecode, which are
  463. #            always included, and DCTEncode/Decode,
  464. #            which are separate).
  465. #            Included automatically in the level2 feature.
  466. #            fzlib - support for zlibEncode/Decode filters.
  467. #            ttfont - support for TrueType fonts.
  468. #            type1 - support for Type 1 fonts and eexec;
  469. #            normally included automatically in all configurations.
  470. #            type42 - support for Type 42 (embedded TrueType) fonts.
  471. #            Included automatically in the level2 feature.
  472. #        There are quite a number of other sub-features that can be
  473. #        selectively included in or excluded from a configuration,
  474. #        but the above are the ones that are most likely to be of
  475. #        interest.
  476. #    COMPILE_INITS - normally 0; if set to 1, compiles the PostScript
  477. #        language initialization files (gs_init.ps et al) into the
  478. #        executable, eliminating the need for these files to be present
  479. #        at run time.
  480. #    BAND_LIST_STORAGE - normally file; if set to memory, stores band
  481. #        lists in memory (with compression if needed).
  482. #    BAND_LIST_COMPRESSOR - normally zlib: selects the compression method
  483. #        to use for band lists in memory.
  484. #    FILE_IMPLEMENTATION - normally stdio; if set to fd, uses file
  485. #        descriptors instead of buffered stdio for file I/O; if set to
  486. #        both, provides both implementations with different procedure
  487. #        names for the fd-based implementation (see sfxfd.c for
  488. #        more information).
  489. #    EXTEND_NAMES - a value N between 0 and 6, indicating that the name
  490. #        table should have a capacity of 2^(16+N) names.  This normally
  491. #        should be set to 0 (or left undefined), since non-zero values
  492. #        result in a larger fixed space overhead and slightly slower code.
  493. #        EXTEND_NAMES is ignored in 16-bit environments.
  494. #
  495. # It is very unlikely that anyone would want to edit the remaining
  496. #   symbols, but we describe them here for completeness:
  497. #    GS_INIT - the name of the initialization file for the interpreter,
  498. #        normally gs_init.ps.
  499. #    PLATFORM - a "device" name for the platform, so that platforms can
  500. #        add various kinds of resources like devices and features.
  501. #    CMD - the suffix for shell command files (e.g., null or .bat).
  502. #        (This is only needed in a few places.)
  503. #    D - the directory separator character (\ for MS-DOS, / for Unix).
  504. #    O - the string for specifying the output file from the C compiler
  505. #        (-o for MS-DOS, -o ./ for Unix).
  506. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  507. #    XE - the extension for executable files (e.g., null or .exe).
  508. #    XEAUX - the extension for the executable files (e.g., null or .exe)
  509. #        for the utility programs (ansi2knr and those compiled with
  510. #        CCAUX).
  511. #    BEGINFILES - the list of files that `make begin' and `make clean'
  512. #        should delete.
  513. #    CCA2K - the C invocation for the ansi2knr program, which is the only
  514. #        one that doesn't use ANSI C syntax.  (It is only needed if
  515. #        the main C compiler also isn't an ANSI compiler.)
  516. #    CCAUX - the C invocation for auxiliary programs (echogs, genarch,
  517. #        genconf, geninit).
  518. #    CCBEGIN - the compilation command for `make begin', normally
  519. #        $(CCC) *.c.
  520. #    CCC - the C invocation for normal compilation.
  521. #    CCD - the C invocation for files that store into frame buffers or
  522. #        device registers.  Needed because some optimizing compilers
  523. #        will eliminate necessary stores.
  524. #    CCCF - the C invocation for compiled fonts and other large,
  525. #        self-contained data modules.  Needed because MS-DOS
  526. #        requires using the 'huge' memory model for these.
  527. #    CCINT - the C invocation for compiling the main interpreter module,
  528. #        normally the same as CCC: this is needed because the
  529. #        Borland compiler generates *worse* code for this module
  530. #        (but only this module) when optimization (-O) is turned on.
  531. #    CCLEAF - the C invocation for compiling modules that contain only
  532. #        leaf procedures, which don't need to build stack frames.
  533. #        This is needed only because many compilers aren't able to
  534. #        recognize leaf procedures on their own.
  535. #    AK - if source files must be converted from ANSI to K&R syntax,
  536. #        this is $(ANSI2KNR_XE); if not, it is null.
  537. #        If a particular platform requires other utility programs
  538. #        to be built, AK must include them too.
  539. #    SHP - the prefix for invoking a shell script in the current directory
  540. #        (null for MS-DOS, $(SH) ./ for Unix).
  541. #    EXPP, EXP - the prefix for invoking an executable program in the
  542. #        current directory (null for MS-DOS, ./ for Unix).
  543. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  544. #    CONFILES - the arguments for genconf to generate the appropriate
  545. #        linker control files (various).
  546. #    CP_ - the command for copying one file to another.  Because of
  547. #        limitations in the MS-DOS/MS Windows environment, the
  548. #        second argument must either be '.' (in which case the
  549. #        write date may be either preserved or set to the current
  550. #        date) or a file name (in which case the write date is
  551. #        always updated).
  552. #    RM_ - the command for deleting (a) file(s) (including wild cards,
  553. #        but limited to a single file or pattern).
  554. #    RMN_ = the command for deleting multiple files / patterns.
  555. #
  556. # The platform-specific makefiles must also include rules for creating
  557. # certain dynamically generated files:
  558. #    gconfig_.h - this indicates the presence or absence of
  559. #        certain system header files that are located in different
  560. #        places on different systems.  (It could be generated by
  561. #        the GNU `configure' program.)
  562. #    gconfigv.h - this indicates the status of certain machine-
  563. #        and configuration-specific features derived from definitions
  564. #        in the platform-specific makefile.
  565.  
  566. # Define the name of this makefile.
  567. GS_MAK=gs.mak
  568.  
  569. # Define the names of the executables.
  570. GS_XE=$(GS)$(XE)
  571. ANSI2KNR_XE=ansi2knr$(XEAUX)
  572. ECHOGS_XE=echogs$(XEAUX)
  573. GENARCH_XE=genarch$(XEAUX)
  574. GENCONF_XE=genconf$(XEAUX)
  575. GENINIT_XE=geninit$(XEAUX)
  576.  
  577. # Define the names of the CONFIG-dependent header files.
  578. # gconfig*.h and gconfx*.h are generated dynamically.
  579. gconfig_h=gconfxx$(CONFIG).h
  580. gconfigf_h=gconfxc$(CONFIG).h
  581.  
  582. # Watcom make insists that rules have a non-empty body!
  583. all default: $(GS_XE)
  584.     $(RM_) _temp_*
  585.  
  586. distclean maintainer-clean realclean: clean
  587.     $(RM_) makefile
  588.  
  589. clean: mostlyclean
  590.     $(RM_) arch.h
  591.     $(RM_) $(GS_XE)
  592.  
  593. mostlyclean:
  594.     $(RMN_) *.$(OBJ) *.a core gmon.out
  595.     $(RMN_) *.dev *.d_* devs*.tr gconfig*.h gconfx*.h j*.h o*.tr l*.tr
  596.     $(RMN_) deflate.h zutil.h
  597.     $(RMN_) gconfig*.c gscdefs*.c iconfig*.c
  598.     $(RMN_) _temp_* _temp_*.* *.map *.sym
  599.     $(RMN_) $(ANSI2KNR_XE) $(ECHOGS_XE) $(GENARCH_XE) $(GENCONF_XE) $(GENINIT_XE)
  600.     $(RMN_) gs_init.c $(BEGINFILES)
  601.  
  602. # Remove only configuration-dependent information.
  603. config-clean:
  604.     $(RMN_) *.dev devs*.tr gconfig*.h gconfx*.h o*.tr l*.tr
  605.  
  606. # A rule to do a quick and dirty compilation attempt when first installing
  607. # the interpreter.  Many of the compilations will fail:
  608. # follow this with 'make'.
  609.  
  610. begin:
  611.     $(RMN_) arch.h gconfig*.h gconfx*.h $(GENARCH_XE) $(GS_XE)
  612.     $(RMN_) gconfig*.c gscdefs*.c iconfig*.c
  613.     $(RMN_) gs_init.c $(BEGINFILES)
  614.     make arch.h gconfigv.h
  615.     - $(CCBEGIN)
  616.     $(RMN_) gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gscdefs.$(OBJ) gsmisc.$(OBJ)
  617.     $(RMN_) icfontab.$(OBJ) iconfig.$(OBJ) iinit.$(OBJ) interp.$(OBJ)
  618.  
  619. # Auxiliary programs
  620.  
  621. arch.h: $(GENARCH_XE)
  622.     $(EXPP) $(EXP)genarch arch.h
  623.  
  624. # Macros for constructing the *.dev files that describe features and
  625. # devices.
  626. SETDEV=$(EXP)echogs -e .dev -w- -l-dev -F -s -l-obj
  627. SETPDEV=$(EXP)echogs -e .dev -w- -l-dev -F -s -l-include -lpage -l-obj
  628. SETMOD=$(EXP)echogs -e .dev -w- -l-obj
  629. ADDMOD=$(EXP)echogs -e .dev -a-
  630.  
  631. # Define the compilation commands for the third-party libraries.
  632. CCCP=$(CCC) -I$(PSRCDIR) -I$(ZSRCDIR) -DPNG_USE_CONST
  633. CCCJ=$(CCC) -I. -I$(JSRCDIR)
  634. CCCZ=$(CCC) -I. -I$(ZSRCDIR)
  635.  
  636. ######################## How to define new 'features' #######################
  637. #
  638. # One defines new 'features' exactly like devices (see devs.mak for details).
  639. # For example, one would define a feature abc by adding the following to
  640. # gs.mak:
  641. #
  642. #    abc_=abc1.$(OBJ) ...
  643. #    abc.dev: $(GS_MAK) $(ECHOGS_XE) $(abc_)
  644. #        $(SETMOD) abc $(abc_)
  645. #        $(ADDMOD) abc -obj ... [if needed]
  646. #        $(ADDMOD) abc -oper ... [if appropriate]
  647. #        $(ADDMOD) abc -ps ... [if appropriate]
  648. #
  649. # If the abc feature requires the presence of some other features jkl and
  650. # pqr, then the rules must look like this:
  651. #
  652. #    abc_=abc1.$(OBJ) ...
  653. #    abc.dev: $(GS_MAK) $(ECHOGS_XE) $(abc_) jkl.dev pqr.dev
  654. #        $(SETMOD) abc $(abc_)
  655. #        ...
  656. #        $(ADDMOD) abc -include jkl pqr
  657.  
  658. # --------------------- Configuration-dependent files --------------------- #
  659.  
  660. # gconfig.h shouldn't have to depend on DEVS_ALL, but that would
  661. # involve rewriting gsconfig to only save the device name, not the
  662. # contents of the <device>.dev files.
  663. # FEATURE_DEVS must precede DEVICE_DEVS so that devices can override
  664. # features in obscure cases.
  665.  
  666. DEVS_ALL=$(PLATFORM).dev $(FEATURE_DEVS) \
  667.   $(DEVICE_DEVS) $(DEVICE_DEVS1) \
  668.   $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5) \
  669.   $(DEVICE_DEVS6) $(DEVICE_DEVS7) $(DEVICE_DEVS8) $(DEVICE_DEVS9) \
  670.   $(DEVICE_DEVS10) $(DEVICE_DEVS11) $(DEVICE_DEVS12) $(DEVICE_DEVS13) \
  671.   $(DEVICE_DEVS14) $(DEVICE_DEVS15)
  672.  
  673. devs_tr=devs.tr$(CONFIG)
  674. $(devs_tr): $(GS_MAK) $(MAKEFILE) $(ECHOGS_XE)
  675.     $(EXP)echogs -w $(devs_tr) - -include $(PLATFORM).dev
  676.     $(EXP)echogs -a $(devs_tr) - $(FEATURE_DEVS)
  677.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS)
  678.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS1)
  679.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS2)
  680.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS3)
  681.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS4)
  682.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS5)
  683.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS6)
  684.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS7)
  685.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS8)
  686.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS9)
  687.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS10)
  688.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS11)
  689.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS12)
  690.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS13)
  691.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS14)
  692.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS15)
  693.  
  694. # GCONFIG_EXTRAS can be set on the command line.
  695. # Note that it consists of arguments for echogs, i.e.,
  696. # it isn't just literal text.
  697. GCONFIG_EXTRAS=
  698.  
  699. ld_tr=ld$(CONFIG).tr
  700. $(gconfig_h) $(ld_tr) lib.tr: \
  701.   $(GS_MAK) $(MAKEFILE) version.mak $(GENCONF_XE) $(ECHOGS_XE) $(devs_tr) $(DEVS_ALL) libcore.dev
  702.     $(EXP)genconf $(devs_tr) libcore.dev -h $(gconfig_h) $(CONFILES)
  703.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_LIB_DEFAULT -x 2022 $(GS_LIB_DEFAULT) -x 22
  704.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u SEARCH_HERE_FIRST -s $(SEARCH_HERE_FIRST)
  705.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_DOCDIR -x 2022 $(GS_DOCDIR) -x 22
  706.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_INIT -x 2022 $(GS_INIT) -x 22
  707.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_REVISION -s $(GS_REVISION)
  708.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_REVISIONDATE -s $(GS_REVISIONDATE)
  709.     $(EXP)echogs -a $(gconfig_h) $(GCONFIG_EXTRAS)
  710.  
  711. ################################################################
  712. # The other platform-independent makefiles are concatenated
  713. # (or included) after this one:
  714. #    lib.mak
  715. #    int.mak
  716. #    jpeg.mak
  717. #    libpng.mak
  718. #    zlib.mak
  719. #    devs.mak
  720. ################################################################
  721. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  722. # This file is part of Aladdin Ghostscript.
  723. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  724. # or distributor accepts any responsibility for the consequences of using it,
  725. # or for whether it serves any particular purpose or works at all, unless he
  726. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  727. # License (the "License") for full details.
  728. # Every copy of Aladdin Ghostscript must include a copy of the License,
  729. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  730. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  731. # under certain conditions described in the License.  Among other things, the
  732. # License requires that the copyright notice and this notice be preserved on
  733. # all copies.
  734.  
  735. # (Platform-independent) makefile for graphics library and other support code.
  736. # See the end of gs.mak for where this fits into the build process.
  737.  
  738. # Define the name of this makefile.
  739. LIB_MAK=lib.mak
  740.  
  741. # Define the inter-dependencies of the .h files.
  742. # Since not all versions of `make' defer expansion of macros,
  743. # we must list these in bottom-to-top order.
  744.  
  745. # Generic files
  746.  
  747. arch_h=arch.h
  748. stdpre_h=stdpre.h
  749. std_h=std.h $(arch_h) $(stdpre_h)
  750.  
  751. # Platform interfaces
  752.  
  753. gp_h=gp.h
  754. gpcheck_h=gpcheck.h
  755.  
  756. # Configuration definitions
  757.  
  758. # gconfig*.h are generated dynamically.
  759. gconfig__h=gconfig_.h
  760. gconfigv_h=gconfigv.h
  761. gscdefs_h=gscdefs.h
  762.  
  763. # C library interfaces
  764.  
  765. # Because of variations in the "standard" header files between systems, and
  766. # because we must include std.h before any file that includes sys/types.h,
  767. # we define local include files named *_.h to substitute for <*.h>.
  768.  
  769. vmsmath_h=vmsmath.h
  770.  
  771. dos__h=dos_.h
  772. ctype__h=ctype_.h $(std_h)
  773. dirent__h=dirent_.h $(std_h) $(gconfig__h)
  774. errno__h=errno_.h $(std_h)
  775. malloc__h=malloc_.h $(std_h)
  776. math__h=math_.h $(std_h) $(vmsmath_h)
  777. memory__h=memory_.h $(std_h)
  778. stat__h=stat_.h $(std_h)
  779. stdio__h=stdio_.h $(std_h)
  780. string__h=string_.h $(std_h)
  781. time__h=time_.h $(std_h) $(gconfig__h)
  782. windows__h=windows_.h
  783.  
  784. # Miscellaneous
  785.  
  786. gdebug_h=gdebug.h
  787. gsalloc_h=gsalloc.h
  788. gsargs_h=gsargs.h
  789. gserror_h=gserror.h
  790. gserrors_h=gserrors.h
  791. gsexit_h=gsexit.h
  792. gsgc_h=gsgc.h
  793. gsio_h=gsio.h
  794. gsmdebug_h=gsmdebug.h
  795. gsmemory_h=gsmemory.h
  796. gsrefct_h=gsrefct.h
  797. gsstruct_h=gsstruct.h
  798. gstypes_h=gstypes.h
  799. gx_h=gx.h $(stdio__h) $(gdebug_h) $(gserror_h) $(gsio_h) $(gsmemory_h) $(gstypes_h)
  800.  
  801. GX=$(AK) $(gx_h)
  802. GXERR=$(GX) $(gserrors_h)
  803.  
  804. ###### Support
  805.  
  806. ### Include files
  807.  
  808. gsbitops_h=gsbitops.h
  809. gsbittab_h=gsbittab.h
  810. gsflip_h=gsflip.h
  811. gsuid_h=gsuid.h
  812. gsutil_h=gsutil.h
  813. gxarith_h=gxarith.h
  814. gxbitmap_h=gxbitmap.h $(gstypes_h)
  815. gxfarith_h=gxfarith.h $(gconfigv_h) $(gxarith_h)
  816. gxfixed_h=gxfixed.h
  817. gxobj_h=gxobj.h $(gxbitmap_h)
  818. # Out of order
  819. gxalloc_h=gxalloc.h $(gsalloc_h) $(gxobj_h)
  820.  
  821. ### Executable code
  822.  
  823. gsalloc.$(OBJ): gsalloc.c $(GX) $(memory__h) $(string__h) \
  824.   $(gsmdebug_h) $(gsstruct_h) $(gxalloc_h)
  825.  
  826. gsargs.$(OBJ): gsargs.c $(ctype__h) $(stdio__h) $(string__h)\
  827.  $(gsargs_h) $(gsexit_h) $(gsmemory_h)
  828.  
  829. gsbitops.$(OBJ): gsbitops.c $(AK) $(memory__h) $(stdio__h)\
  830.  $(gdebug_h) $(gsbitops_h) $(gstypes_h)
  831.  
  832. gsbittab.$(OBJ): gsbittab.c $(AK) $(stdpre_h) $(gsbittab_h)
  833.  
  834. # gsfemu is only used in FPU-less configurations, and currently only with gcc.
  835. # We thought using CCLEAF would produce smaller code, but it actually
  836. # produces larger code!
  837. gsfemu.$(OBJ): gsfemu.c $(AK) $(std_h)
  838.  
  839. # gsflip is not part of the standard configuration: it's rather large,
  840. # and no standard facility requires it.
  841. gsflip.$(OBJ): gsflip.c $(GX) $(gsbittab_h) $(gsflip_h)
  842.     $(CCLEAF) gsflip.c
  843.  
  844. gsmemory.$(OBJ): gsmemory.c $(GX) $(malloc__h) $(memory__h) \
  845.   $(gsmdebug_h) $(gsrefct_h) $(gsstruct_h)
  846.  
  847. gsmisc.$(OBJ): gsmisc.c $(GXERR) $(gconfigv_h) \
  848.   $(malloc__h) $(math__h) $(memory__h) $(gpcheck_h) $(gxfarith_h) $(gxfixed_h)
  849.  
  850. # gsnogc currently is only used in library-only configurations.
  851. gsnogc.$(OBJ): gsnogc.c $(GX)\
  852.  $(gsgc_h) $(gsmdebug_h) $(gsstruct_h) $(gxalloc_h)
  853.  
  854. gsutil.$(OBJ): gsutil.c $(AK) $(memory__h) $(string__h) $(gconfigv_h)\
  855.  $(gstypes_h) $(gsuid_h) $(gsutil_h)
  856.  
  857. ###### Low-level facilities and utilities
  858.  
  859. ### Include files
  860.  
  861. gdevbbox_h=gdevbbox.h
  862. gdevmem_h=gdevmem.h $(gsbitops_h)
  863. gdevmrop_h=gdevmrop.h
  864.  
  865. gsccode_h=gsccode.h
  866. gsccolor_h=gsccolor.h $(gsstruct_h)
  867. gscsel_h=gscsel.h
  868. gscolor1_h=gscolor1.h
  869. gscoord_h=gscoord.h
  870. gscpm_h=gscpm.h
  871. gsdevice_h=gsdevice.h
  872. gsfcmap_h=gsfcmap.h $(gsccode_h)
  873. gsfont_h=gsfont.h
  874. gshsb_h=gshsb.h
  875. gsht_h=gsht.h
  876. gsht1_h=gsht1.h $(gsht_h)
  877. gsiparam_h=gsiparam.h
  878. gsjconf_h=gsjconf.h $(std_h)
  879. gslib_h=gslib.h
  880. gslparam_h=gslparam.h
  881. gsmatrix_h=gsmatrix.h
  882. gspaint_h=gspaint.h
  883. gsparam_h=gsparam.h
  884. gspath2_h=gspath2.h
  885. gspenum_h=gspenum.h
  886. gsropt_h=gsropt.h
  887. gsxfont_h=gsxfont.h
  888. # Out of order
  889. gschar_h=gschar.h $(gsccode_h) $(gscpm_h)
  890. gscolor2_h=gscolor2.h $(gsccolor_h) $(gsuid_h) $(gxbitmap_h)
  891. gsimage_h=gsimage.h $(gsiparam_h)
  892. gsline_h=gsline.h $(gslparam_h)
  893. gspath_h=gspath.h $(gspenum_h)
  894. gsrop_h=gsrop.h $(gsropt_h)
  895.  
  896. gxbcache_h=gxbcache.h $(gxbitmap_h)
  897. gxchar_h=gxchar.h $(gschar_h)
  898. gxcindex_h=gxcindex.h
  899. gxcvalue_h=gxcvalue.h
  900. gxclio_h=gxclio.h
  901. gxclip2_h=gxclip2.h
  902. gxcolor2_h=gxcolor2.h $(gscolor2_h) $(gsrefct_h) $(gxbitmap_h)
  903. gxcoord_h=gxcoord.h $(gscoord_h)
  904. gxcpath_h=gxcpath.h
  905. gxdda_h=gxdda.h
  906. gxdevrop_h=gxdevrop.h
  907. gxdevmem_h=gxdevmem.h
  908. gxdither_h=gxdither.h
  909. gxfcache_h=gxfcache.h $(gsuid_h) $(gsxfont_h) $(gxbcache_h)
  910. gxfcmap_h=gxfcmap.h $(gsfcmap_h) $(gsuid_h)
  911. gxfont_h=gxfont.h $(gsfont_h) $(gsuid_h) $(gsstruct_h)
  912. gxfont0_h=gxfont0.h
  913. gxfrac_h=gxfrac.h
  914. gxhttile_h=gxhttile.h
  915. gxhttype_h=gxhttype.h
  916. gxiodev_h=gxiodev.h $(stat__h)
  917. gxline_h=gxline.h $(gslparam_h)
  918. gxlum_h=gxlum.h
  919. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  920. gxpaint_h=gxpaint.h
  921. gxpath_h=gxpath.h $(gscpm_h) $(gslparam_h) $(gspenum_h)
  922. gxpcache_h=gxpcache.h
  923. gxpcolor_h=gxpcolor.h $(gxpcache_h)
  924. gxsample_h=gxsample.h
  925. gxstate_h=gxstate.h
  926. gxtmap_h=gxtmap.h
  927. gxxfont_h=gxxfont.h $(gsccode_h) $(gsmatrix_h) $(gsuid_h) $(gsxfont_h)
  928. # The following are out of order because they include other files.
  929. gsdcolor_h=gsdcolor.h $(gsccolor_h) $(gxarith_h) $(gxbitmap_h) $(gxcindex_h) $(gxhttile_h)
  930. gxdcolor_h=gxdcolor.h $(gscsel_h) $(gsdcolor_h) $(gsropt_h) $(gsstruct_h)
  931. gxdevice_h=gxdevice.h $(gsdcolor_h) $(gsiparam_h) $(gsmatrix_h) \
  932.   $(gsropt_h) $(gsstruct_h) $(gsxfont_h) \
  933.   $(gxbitmap_h) $(gxcindex_h) $(gxcvalue_h) $(gxfixed_h)
  934. gxdht_h=gxdht.h $(gsrefct_h) $(gxarith_h) $(gxhttype_h)
  935. gxctable_h=gxctable.h $(gxfixed_h) $(gxfrac_h)
  936. gscie_h=gscie.h $(gsrefct_h) $(gxctable_h)
  937. gscsepr_h=gscsepr.h
  938. gscspace_h=gscspace.h
  939. gxdcconv_h=gxdcconv.h $(gxfrac_h)
  940. gxfmap_h=gxfmap.h $(gsrefct_h) $(gxfrac_h) $(gxtmap_h)
  941. gxistate_h=gxistate.h $(gscsel_h) $(gsropt_h) $(gxcvalue_h) $(gxfixed_h) $(gxline_h) $(gxmatrix_h) $(gxtmap_h)
  942. gxclist_h=gxclist.h $(gscspace_h) $(gxbcache_h) $(gxclio_h) $(gxistate_h)
  943. gxcmap_h=gxcmap.h $(gscsel_h) $(gxcvalue_h) $(gxfmap_h)
  944. gxcspace_h=gxcspace.h $(gscspace_h) $(gsccolor_h) $(gscsel_h) $(gsstruct_h) $(gxfrac_h)
  945. gxht_h=gxht.h $(gsht1_h) $(gsrefct_h) $(gxhttype_h) $(gxtmap_h)
  946. gscolor_h=gscolor.h $(gxtmap_h)
  947. gsstate_h=gsstate.h $(gscolor_h) $(gscsel_h) $(gsdevice_h) $(gsht_h) $(gsline_h)
  948.  
  949. gzacpath_h=gzacpath.h
  950. gzcpath_h=gzcpath.h $(gxcpath_h)
  951. gzht_h=gzht.h $(gscsel_h) $(gxdht_h) $(gxfmap_h) $(gxht_h) $(gxhttile_h)
  952. gzline_h=gzline.h $(gxline_h)
  953. gzpath_h=gzpath.h $(gsstruct_h) $(gxpath_h)
  954. gzstate_h=gzstate.h $(gscpm_h) $(gsstate_h) $(gxdcolor_h) $(gxistate_h) $(gxstate_h)
  955.  
  956. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  957.   $(gserrors_h) $(gsmatrix_h) $(gsparam_h) $(gsutil_h) \
  958.   $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  959.  
  960. sa85x_h=sa85x.h
  961. sbtx_h=sbtx.h
  962. scanchar_h=scanchar.h
  963. scommon_h=scommon.h $(gsmemory_h) $(gstypes_h) $(gsstruct_h)
  964. sdct_h=sdct.h
  965. shc_h=shc.h $(gsbittab_h)
  966. siscale_h=siscale.h $(gconfigv_h)
  967. sjpeg_h=sjpeg.h
  968. slzwx_h=slzwx.h
  969. spcxx_h=spcxx.h
  970. spdiffx_h=spdiffx.h
  971. spngpx_h=spngpx.h
  972. srlx_h=srlx.h
  973. sstring_h=sstring.h
  974. strimpl_h=strimpl.h $(scommon_h) $(gstypes_h) $(gsstruct_h)
  975. szlibx_h=szlibx.h
  976. # Out of order
  977. scf_h=scf.h $(shc_h)
  978. scfx_h=scfx.h $(shc_h)
  979. gximage_h=gximage.h $(gsiparam_h) $(gxcspace_h) $(gxdda_h) $(gxsample_h)\
  980.  $(siscale_h) $(strimpl_h)
  981.  
  982. ### Executable code
  983.  
  984. # gconfig and gscdefs are handled specially.  Currently they go in psbase
  985. # rather than in libcore, which is clearly wrong.
  986. gconfig=gconfig$(CONFIG)
  987. $(gconfig).$(OBJ): gconf.c $(GX) \
  988.   $(gscdefs_h) $(gconfig_h) $(gxdevice_h) $(gxiodev_h) $(MAKEFILE)
  989.     $(RM_) gconfig.h
  990.     $(RM_) $(gconfig).c
  991.     $(CP_) $(gconfig_h) gconfig.h
  992.     $(CP_) gconf.c $(gconfig).c
  993.     $(CCC) $(gconfig).c
  994.     $(RM_) gconfig.h
  995.     $(RM_) $(gconfig).c
  996.  
  997. gscdefs=gscdefs$(CONFIG)
  998. $(gscdefs).$(OBJ): gscdef.c $(stdpre_h) $(gscdefs_h) $(gconfig_h) $(MAKEFILE)
  999.     $(RM_) gconfig.h
  1000.     $(RM_) $(gscdefs).c
  1001.     $(CP_) $(gconfig_h) gconfig.h
  1002.     $(CP_) gscdef.c $(gscdefs).c
  1003.     $(CCC) $(gscdefs).c
  1004.     $(RM_) gconfig.h
  1005.     $(RM_) $(gscdefs).c
  1006.  
  1007. gxacpath.$(OBJ): gxacpath.c $(GXERR) \
  1008.   $(gsdcolor_h) $(gsrop_h) $(gsstruct_h) $(gsutil_h) \
  1009.   $(gxdevice_h) $(gxfixed_h) $(gxpaint_h) \
  1010.   $(gzacpath_h) $(gzcpath_h) $(gzpath_h)
  1011.  
  1012. gxbcache.$(OBJ): gxbcache.c $(GX) $(memory__h) \
  1013.   $(gsmdebug_h) $(gxbcache_h)
  1014.  
  1015. gxccache.$(OBJ): gxccache.c $(GXERR) $(gpcheck_h) \
  1016.   $(gscspace_h) $(gsimage_h) $(gsstruct_h) \
  1017.   $(gxchar_h) $(gxdevice_h) $(gxdevmem_h) $(gxfcache_h) \
  1018.   $(gxfixed_h) $(gxfont_h) $(gxhttile_h) $(gxmatrix_h) $(gxxfont_h) \
  1019.   $(gzstate_h) $(gzpath_h) $(gzcpath_h) 
  1020.  
  1021. gxccman.$(OBJ): gxccman.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1022.  $(gsbitops_h) $(gsstruct_h) $(gsutil_h) $(gxfixed_h) $(gxmatrix_h)\
  1023.  $(gxdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxfcache_h) $(gxchar_h)\
  1024.  $(gxxfont_h) $(gzstate_h) $(gzpath_h)
  1025.  
  1026. gxcht.$(OBJ): gxcht.c $(GXERR) $(memory__h)\
  1027.  $(gsutil_h)\
  1028.  $(gxcmap_h) $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxistate_h)\
  1029.  $(gxmatrix_h) $(gzht_h)
  1030.  
  1031. gxcmap.$(OBJ): gxcmap.c $(GXERR) \
  1032.   $(gsccolor_h) \
  1033.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) $(gxdither_h) \
  1034.   $(gxfarith_h) $(gxfrac_h) $(gxlum_h) $(gzstate_h)
  1035.  
  1036. gxcpath.$(OBJ): gxcpath.c $(GXERR)\
  1037.  $(gscoord_h) $(gsstruct_h) $(gsutil_h)\
  1038.  $(gxdevice_h) $(gxfixed_h) $(gzpath_h) $(gzcpath_h)
  1039.  
  1040. gxdcconv.$(OBJ): gxdcconv.c $(GX) \
  1041.   $(gsdcolor_h) $(gxcmap_h) $(gxdcconv_h) $(gxdevice_h) \
  1042.   $(gxfarith_h) $(gxistate_h) $(gxlum_h)
  1043.  
  1044. gxdcolor.$(OBJ): gxdcolor.c $(GX) \
  1045.   $(gsbittab_h) $(gxdcolor_h) $(gxdevice_h)
  1046.  
  1047. gxdither.$(OBJ): gxdither.c $(GX) \
  1048.   $(gsstruct_h) $(gsdcolor_h) \
  1049.   $(gxcmap_h) $(gxdevice_h) $(gxdither_h) $(gxlum_h) $(gzht_h)
  1050.  
  1051. gxfill.$(OBJ): gxfill.c $(GXERR) $(math__h) \
  1052.   $(gsstruct_h) \
  1053.   $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxhttile_h) \
  1054.   $(gxistate_h) $(gxpaint_h) \
  1055.   $(gzcpath_h) $(gzpath_h)
  1056.  
  1057. gxht.$(OBJ): gxht.c $(GXERR) $(memory__h)\
  1058.  $(gsbitops_h) $(gsstruct_h) $(gsutil_h)\
  1059.  $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxistate_h) $(gzht_h)
  1060.  
  1061. gximage.$(OBJ): gximage.c $(GXERR) $(math__h) $(memory__h) $(gpcheck_h)\
  1062.  $(gsccolor_h) $(gspaint_h) $(gsstruct_h)\
  1063.  $(gxfixed_h) $(gxfrac_h) $(gxarith_h) $(gxmatrix_h)\
  1064.  $(gxdevice_h) $(gzpath_h) $(gzstate_h)\
  1065.  $(gzcpath_h) $(gxdevmem_h) $(gximage_h) $(gdevmrop_h)
  1066.  
  1067. gximage0.$(OBJ): gximage0.c $(GXERR) $(memory__h)\
  1068.  $(gxcpath_h) $(gxdevice_h) $(gximage_h)
  1069.  
  1070. gximage1.$(OBJ): gximage1.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1071.  $(gdevmem_h) $(gsbittab_h) $(gsccolor_h) $(gspaint_h) $(gsutil_h)\
  1072.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
  1073.  $(gxdevmem_h) $(gxfixed_h) $(gximage_h) $(gxistate_h) $(gxmatrix_h)\
  1074.  $(gzht_h) $(gzpath_h)
  1075.  
  1076. gximage2.$(OBJ): gximage2.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1077.  $(gdevmem_h) $(gsccolor_h) $(gspaint_h) $(gsutil_h)\
  1078.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
  1079.  $(gxdevmem_h) $(gxfixed_h) $(gximage_h) $(gxistate_h) $(gxmatrix_h)\
  1080.  $(gzht_h) $(gzpath_h)
  1081.  
  1082. gxpaint.$(OBJ): gxpaint.c $(GX) \
  1083.   $(gxdevice_h) $(gxhttile_h) $(gxpaint_h) $(gxpath_h) $(gzstate_h)
  1084.  
  1085. gxpath.$(OBJ): gxpath.c $(GXERR) \
  1086.   $(gsstruct_h) $(gxfixed_h) $(gzpath_h)
  1087.  
  1088. gxpath2.$(OBJ): gxpath2.c $(GXERR) $(math__h) \
  1089.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  1090.  
  1091. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) $(math__h) $(gconfigv_h) \
  1092.   $(gxfarith_h) $(gxfixed_h) $(gzpath_h)
  1093.  
  1094. gxpdash.$(OBJ): gxpdash.c $(GX) $(math__h) \
  1095.   $(gscoord_h) $(gsline_h) $(gsmatrix_h) \
  1096.   $(gxfixed_h) $(gzline_h) $(gzpath_h)
  1097.  
  1098. gxpflat.$(OBJ): gxpflat.c $(GX)\
  1099.  $(gxarith_h) $(gxfixed_h) $(gzpath_h)
  1100.  
  1101. gxsample.$(OBJ): gxsample.c $(GX)\
  1102.  $(gxsample_h)
  1103.  
  1104. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(math__h) $(gpcheck_h) \
  1105.   $(gscoord_h) $(gsdcolor_h) $(gsdevice_h) \
  1106.   $(gxdevice_h) $(gxfarith_h) $(gxfixed_h) \
  1107.   $(gxhttile_h) $(gxistate_h) $(gxmatrix_h) $(gxpaint_h) \
  1108.   $(gzcpath_h) $(gzline_h) $(gzpath_h)
  1109.  
  1110. ###### Higher-level facilities
  1111.  
  1112. gschar.$(OBJ): gschar.c $(GXERR) $(memory__h) $(string__h)\
  1113.  $(gspath_h) $(gsstruct_h) \
  1114.  $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gxcoord_h) $(gxdevice_h) $(gxdevmem_h) \
  1115.  $(gxfont_h) $(gxfont0_h) $(gxchar_h) $(gxfcache_h) $(gzpath_h) $(gzstate_h)
  1116.  
  1117. gscolor.$(OBJ): gscolor.c $(GXERR) \
  1118.   $(gsccolor_h) $(gsstruct_h) $(gsutil_h) \
  1119.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) $(gzstate_h)
  1120.  
  1121. gscoord.$(OBJ): gscoord.c $(GXERR) $(math__h) \
  1122.   $(gsccode_h) $(gxcoord_h) $(gxdevice_h) $(gxfarith_h) $(gxfixed_h) $(gxfont_h) \
  1123.   $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  1124.  
  1125. gsdevice.$(OBJ): gsdevice.c $(GXERR) $(memory__h)\
  1126.  $(gscdefs_h) $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstruct_h)\
  1127.  $(gxcmap_h) $(gxdevice_h) $(gxdevmem_h) $(gzstate_h)
  1128.  
  1129. gsdevmem.$(OBJ): gsdevmem.c $(GXERR) $(math__h) $(memory__h) \
  1130.   $(gxarith_h) $(gxdevice_h) $(gxdevmem_h)
  1131.  
  1132. gsdparam.$(OBJ): gsdparam.c $(GXERR) $(memory__h) $(string__h) \
  1133.   $(gsparam_h) $(gxdevice_h) $(gxfixed_h)
  1134.  
  1135. gsfont.$(OBJ): gsfont.c $(GXERR) $(memory__h)\
  1136.  $(gschar_h) $(gsstruct_h) \
  1137.  $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfcache_h)\
  1138.  $(gzstate_h)
  1139.  
  1140. gsht.$(OBJ): gsht.c $(GXERR) $(memory__h)\
  1141.  $(gsstruct_h) $(gsutil_h) $(gxarith_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  1142.  
  1143. gshtscr.$(OBJ): gshtscr.c $(GXERR) $(math__h) \
  1144.   $(gsstruct_h) $(gxarith_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  1145.  
  1146. gsimage.$(OBJ): gsimage.c $(GXERR) $(memory__h)\
  1147.   $(gscspace_h) $(gsimage_h) $(gsmatrix_h) $(gsstruct_h) \
  1148.   $(gxarith_h) $(gxdevice_h) $(gzstate_h)
  1149.  
  1150. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  1151.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  1152.  
  1153. gsinit.$(OBJ): gsinit.c $(memory__h) $(stdio__h) \
  1154.   $(gdebug_h) $(gp_h) $(gscdefs_h) $(gslib_h) $(gsmemory_h)
  1155.  
  1156. gsiodev.$(OBJ): gsiodev.c $(GXERR) $(errno__h) $(string__h) \
  1157.   $(gp_h) $(gsparam_h) $(gxiodev_h)
  1158.  
  1159. gsline.$(OBJ): gsline.c $(GXERR) $(math__h) $(memory__h)\
  1160.  $(gsline_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  1161.  
  1162. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) $(math__h) \
  1163.   $(gxfarith_h) $(gxfixed_h) $(gxmatrix_h)
  1164.  
  1165. gspaint.$(OBJ): gspaint.c $(GXERR) $(math__h) $(gpcheck_h)\
  1166.  $(gspaint_h) $(gspath_h) $(gsropt_h)\
  1167.  $(gxcpath_h) $(gxdevmem_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxpaint_h)\
  1168.  $(gzpath_h) $(gzstate_h)
  1169.  
  1170. gsparam.$(OBJ): gsparam.c $(GXERR) $(memory__h) $(string__h)\
  1171.  $(gsparam_h) $(gsstruct_h)
  1172.  
  1173. gspath.$(OBJ): gspath.c $(GXERR) \
  1174.   $(gscoord_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  1175.   $(gzcpath_h) $(gzpath_h) $(gzstate_h)
  1176.  
  1177. gsstate.$(OBJ): gsstate.c $(GXERR) $(memory__h)\
  1178.  $(gscie_h) $(gscolor2_h) $(gscoord_h) $(gspath_h) $(gsstruct_h) $(gsutil_h) \
  1179.  $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) $(gxpcache_h) \
  1180.  $(gzstate_h) $(gzht_h) $(gzline_h) $(gzpath_h) $(gzcpath_h)
  1181.  
  1182. ###### The internal devices
  1183.  
  1184. ### The built-in device implementations:
  1185.  
  1186. # The bounding box device is not normally a free-standing device.
  1187. # To configure it as one for testing, change SETMOD to SETDEV, and also
  1188. # define TEST in gdevbbox.c.
  1189. bbox.dev: $(LIB_MAK) $(ECHOGS_XE) gdevbbox.$(OBJ)
  1190.     $(SETMOD) bbox gdevbbox.$(OBJ)
  1191.  
  1192. gdevbbox.$(OBJ): gdevbbox.c $(GXERR) $(math__h) $(memory__h) \
  1193.   $(gdevbbox_h) $(gsdevice_h) $(gsparam_h) \
  1194.   $(gxcpath_h) $(gxdevice_h) $(gxistate_h) $(gxpaint_h) $(gxpath_h)
  1195.  
  1196. gdevddrw.$(OBJ): gdevddrw.c $(GXERR) $(math__h) $(gpcheck_h) \
  1197.   $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  1198.  
  1199. gdevdflt.$(OBJ): gdevdflt.c $(GXERR) $(gpcheck_h)\
  1200.  $(gsbittab_h) $(gsropt_h)\
  1201.  $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h)
  1202.  
  1203. gdevnfwd.$(OBJ): gdevnfwd.c $(GX) \
  1204.   $(gxdevice_h)
  1205.  
  1206. # The render/RGB device is only here as an example, but we can configure
  1207. # it as a real device for testing.
  1208. rrgb.dev: $(LIB_MAK) $(ECHOGS_XE) gdevrrgb.$(OBJ) page.dev
  1209.     $(SETPDEV) rrgb gdevrrgb.$(OBJ)
  1210.  
  1211. gdevrrgb.$(OBJ): gdevrrgb.c $(AK)\
  1212.  $(gdevprn_h)
  1213.  
  1214. ### The memory devices:
  1215.  
  1216. gdevabuf.$(OBJ): gdevabuf.c $(GXERR) $(memory__h)\
  1217.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1218.  
  1219. gdevmem.$(OBJ): gdevmem.c $(GXERR) $(memory__h)\
  1220.  $(gsstruct_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1221.  
  1222. gdevm1.$(OBJ): gdevm1.c $(GX) $(memory__h) $(gsrop_h)\
  1223.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1224.  
  1225. gdevm2.$(OBJ): gdevm2.c $(GX) $(memory__h)\
  1226.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1227.  
  1228. gdevm4.$(OBJ): gdevm4.c $(GX) $(memory__h)\
  1229.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1230.  
  1231. gdevm8.$(OBJ): gdevm8.c $(GX) $(memory__h)\
  1232.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1233.  
  1234. gdevm16.$(OBJ): gdevm16.c $(GX) $(memory__h)\
  1235.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1236.  
  1237. gdevm24.$(OBJ): gdevm24.c $(GX) $(memory__h)\
  1238.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1239.  
  1240. gdevm32.$(OBJ): gdevm32.c $(GX) $(memory__h)\
  1241.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1242.  
  1243. gdevmpla.$(OBJ): gdevmpla.c $(GX) $(memory__h)\
  1244.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1245.  
  1246. # Create a pseudo-"feature" for the entire graphics library.
  1247.  
  1248. LIB1s=gsalloc.$(OBJ) gsbitops.$(OBJ) gsbittab.$(OBJ)
  1249. LIB2s=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) gsdevice.$(OBJ) gsdevmem.$(OBJ)
  1250. LIB3s=gsdparam.$(OBJ) gsfont.$(OBJ) gsht.$(OBJ) gshtscr.$(OBJ)
  1251. LIB4s=gsimage.$(OBJ) gsimpath.$(OBJ) gsinit.$(OBJ) gsiodev.$(OBJ)
  1252. LIB5s=gsline.$(OBJ) gsmatrix.$(OBJ) gsmemory.$(OBJ) gsmisc.$(OBJ)
  1253. LIB6s=gspaint.$(OBJ) gsparam.$(OBJ) gspath.$(OBJ) gsstate.$(OBJ) gsutil.$(OBJ)
  1254. LIB1x=gxacpath.$(OBJ) gxbcache.$(OBJ)
  1255. LIB2x=gxccache.$(OBJ) gxccman.$(OBJ) gxcht.$(OBJ) gxcmap.$(OBJ) gxcpath.$(OBJ)
  1256. LIB3x=gxdcconv.$(OBJ) gxdcolor.$(OBJ) gxdither.$(OBJ) gxfill.$(OBJ) gxht.$(OBJ)
  1257. LIB4x=gximage.$(OBJ) gximage0.$(OBJ) gximage1.$(OBJ) gximage2.$(OBJ)
  1258. LIB5x=gxpaint.$(OBJ) gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ)
  1259. LIB6x=gxpdash.$(OBJ) gxpflat.$(OBJ) gxsample.$(OBJ) gxstroke.$(OBJ)
  1260. LIB1d=gdevabuf.$(OBJ) gdevddrw.$(OBJ) gdevdflt.$(OBJ) gdevnfwd.$(OBJ)
  1261. LIB2d=gdevmem.$(OBJ) gdevm1.$(OBJ) gdevm2.$(OBJ) gdevm4.$(OBJ) gdevm8.$(OBJ)
  1262. LIB3d=gdevm16.$(OBJ) gdevm24.$(OBJ) gdevm32.$(OBJ) gdevmpla.$(OBJ)
  1263. LIBs=$(LIB1s) $(LIB2s) $(LIB3s) $(LIB4s) $(LIB5s) $(LIB6s)
  1264. LIBx=$(LIB1x) $(LIB2x) $(LIB3x) $(LIB4x) $(LIB5x) $(LIB6x)
  1265. LIBd=$(LIB1d) $(LIB2d) $(LIB3d)
  1266. LIB_ALL=$(LIBs) $(LIBx) $(LIBd)
  1267. libs.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBs)
  1268.     $(EXP)echogs -w libs.dev $(LIB1s)
  1269.     $(EXP)echogs -a libs.dev $(LIB2s)
  1270.     $(EXP)echogs -a libs.dev $(LIB3s)
  1271.     $(EXP)echogs -a libs.dev $(LIB4s)
  1272.     $(EXP)echogs -a libs.dev $(LIB5s)
  1273.     $(EXP)echogs -a libs.dev $(LIB6s)
  1274.     $(ADDMOD) libs -init gscolor
  1275.  
  1276. libx.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBx)
  1277.     $(EXP)echogs -w libx.dev $(LIB1x)
  1278.     $(EXP)echogs -a libx.dev $(LIB2x)
  1279.     $(EXP)echogs -a libx.dev $(LIB3x)
  1280.     $(EXP)echogs -a libx.dev $(LIB4x)
  1281.     $(EXP)echogs -a libx.dev $(LIB5x)
  1282.     $(EXP)echogs -a libx.dev $(LIB6x)
  1283.     $(ADDMOD) libx -init gximage1 gximage2
  1284.  
  1285. libd.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBd)
  1286.     $(EXP)echogs -w libd.dev $(LIB1d)
  1287.     $(EXP)echogs -a libd.dev $(LIB2d)
  1288.     $(EXP)echogs -a libd.dev $(LIB3d)
  1289.  
  1290. # roplib shouldn't be required....
  1291. libcore.dev: $(LIB_MAK) $(ECHOGS_XE)\
  1292.   libs.dev libx.dev libd.dev iscale.dev roplib.dev
  1293.     $(SETMOD) libcore
  1294.     $(ADDMOD) libcore -dev nullpage
  1295.     $(ADDMOD) libcore -include libs libx libd iscale roplib
  1296.  
  1297. # ---------------- Stream support ---------------- #
  1298. # Currently the only thing in the library that uses this is clists.
  1299.  
  1300. stream_h=stream.h $(scommon_h)
  1301.  
  1302. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(memory__h) \
  1303.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  1304.  
  1305. # ---------------- File streams ---------------- #
  1306. # Currently only the high-level drivers use these, but more drivers will
  1307. # probably use them eventually.
  1308.  
  1309. sfile_=sfx$(FILE_IMPLEMENTATION).$(OBJ)
  1310. sfile.dev: $(LIB_MAK) $(ECHOGS_XE) $(sfile_)
  1311.     $(SETMOD) sfile $(sfile_)
  1312.  
  1313. sfxstdio.$(OBJ): sfxstdio.c $(AK) $(stdio__h) $(memory__h) \
  1314.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  1315.  
  1316. sfxfd.$(OBJ): sfxfd.c $(AK) $(stdio__h) $(errno__h) $(memory__h) \
  1317.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  1318.  
  1319. sfxboth.$(OBJ): sfxboth.c sfxstdio.c sfxfd.c
  1320.  
  1321. # ---------------- CCITTFax filters ---------------- #
  1322. # These are used by clists, some drivers, and Level 2 in general.
  1323.  
  1324. cfe_=scfe.$(OBJ) scfetab.$(OBJ) shc.$(OBJ)
  1325. cfe.dev: $(LIB_MAK) $(ECHOGS_XE) $(cfe_)
  1326.     $(SETMOD) cfe $(cfe_)
  1327.  
  1328. scfe.$(OBJ): scfe.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1329.   $(scf_h) $(strimpl_h) $(scfx_h)
  1330.  
  1331. scfetab.$(OBJ): scfetab.c $(AK) $(std_h) $(scommon_h) $(scf_h)
  1332.  
  1333. shc.$(OBJ): shc.c $(AK) $(std_h) $(scommon_h) $(shc_h)
  1334.  
  1335. cfd_=scfd.$(OBJ) scfdtab.$(OBJ)
  1336. cfd.dev: $(LIB_MAK) $(ECHOGS_XE) $(cfd_)
  1337.     $(SETMOD) cfd $(cfd_)
  1338.  
  1339. scfd.$(OBJ): scfd.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1340.   $(scf_h) $(strimpl_h) $(scfx_h)
  1341.  
  1342. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scommon_h) $(scf_h)
  1343.  
  1344. # ---------------- DCT (JPEG) filters ---------------- #
  1345. # These are used by Level 2, and by the JPEG-writing driver.
  1346.  
  1347. # Common code
  1348.  
  1349. sdctc_=sdctc.$(OBJ) sjpegc.$(OBJ)
  1350.  
  1351. sdctc.$(OBJ): sdctc.c $(AK) $(stdio__h)\
  1352.  $(sdct_h) $(strimpl_h)\
  1353.  jpeglib.h
  1354.  
  1355. sjpegc.$(OBJ): sjpegc.c $(AK) $(stdio__h) $(string__h) $(gx_h)\
  1356.  $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h) \
  1357.  jerror.h jpeglib.h
  1358.  
  1359. # Encoding (compression)
  1360.  
  1361. sdcte_=$(sdctc_) sdcte.$(OBJ) sjpege.$(OBJ)
  1362. sdcte.dev: $(LIB_MAK) $(ECHOGS_XE) $(sdcte_) jpege.dev
  1363.     $(SETMOD) sdcte $(sdcte_)
  1364.     $(ADDMOD) sdcte -include jpege
  1365.  
  1366. sdcte.$(OBJ): sdcte.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1367.   $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1368.   jerror.h jpeglib.h
  1369.  
  1370. sjpege.$(OBJ): sjpege.c $(AK) $(stdio__h) $(string__h) $(gx_h)\
  1371.  $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h) \
  1372.  jerror.h jpeglib.h
  1373.  
  1374. # Decoding (decompression)
  1375.  
  1376. sdctd_=$(sdctc_) sdctd.$(OBJ) sjpegd.$(OBJ)
  1377. sdctd.dev: $(LIB_MAK) $(ECHOGS_XE) $(sdctd_) jpegd.dev
  1378.     $(SETMOD) sdctd $(sdctd_)
  1379.     $(ADDMOD) sdctd -include jpegd
  1380.  
  1381. sdctd.$(OBJ): sdctd.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1382.   $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1383.   jerror.h jpeglib.h
  1384.  
  1385. sjpegd.$(OBJ): sjpegd.c $(AK) $(stdio__h) $(string__h) $(gx_h)\
  1386.  $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h)\
  1387.  jerror.h jpeglib.h
  1388.  
  1389. # ---------------- LZW filters ---------------- #
  1390. # These are used by Level 2 in general.
  1391.  
  1392. slzwe_=slzwce
  1393. #slzwe_=slzwe
  1394. lzwe_=$(slzwe_).$(OBJ) slzwc.$(OBJ)
  1395. lzwe.dev: $(LIB_MAK) $(ECHOGS_XE) $(lzwe_)
  1396.     $(SETMOD) lzwe $(lzwe_)
  1397.  
  1398. # We need slzwe.dev as a synonym for lzwe.dev for BAND_LIST_STORAGE = memory.
  1399. slzwe.dev: lzwe.dev
  1400.     $(CP_) lzwe.dev slzwe.dev
  1401.  
  1402. slzwce.$(OBJ): slzwce.c $(AK) $(stdio__h) $(gdebug_h)\
  1403.   $(slzwx_h) $(strimpl_h)
  1404.  
  1405. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h)\
  1406.   $(slzwx_h) $(strimpl_h)
  1407.  
  1408. slzwc.$(OBJ): slzwc.c $(AK) $(std_h)\
  1409.   $(slzwx_h) $(strimpl_h)
  1410.  
  1411. lzwd_=slzwd.$(OBJ) slzwc.$(OBJ)
  1412. lzwd.dev: $(LIB_MAK) $(ECHOGS_XE) $(lzwd_)
  1413.     $(SETMOD) lzwd $(lzwd_)
  1414.  
  1415. # We need slzwd.dev as a synonym for lzwd.dev for BAND_LIST_STORAGE = memory.
  1416. slzwd.dev: lzwd.dev
  1417.     $(CP_) lzwd.dev slzwd.dev
  1418.  
  1419. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h)\
  1420.   $(slzwx_h) $(strimpl_h)
  1421.  
  1422. # ---------------- PCX decoding filter ---------------- #
  1423. # This is an adhoc filter not used by anything in the standard configuration.
  1424.  
  1425. pcxd_=spcxd.$(OBJ)
  1426. pcxd.dev: $(LIB_MAK) $(ECHOGS_XE) $(pcxd_)
  1427.     $(SETMOD) pcxd $(pcxd_)
  1428.  
  1429. spcxd.$(OBJ): spcxd.c $(AK) $(stdio__h) $(memory__h) \
  1430.   $(spcxx_h) $(strimpl_h)
  1431.  
  1432. # ---------------- Pixel-difference filters ---------------- #
  1433. # The Predictor facility of the LZW and Flate filters uses these.
  1434.  
  1435. pdiff_=spdiff.$(OBJ)
  1436. pdiff.dev: $(LIB_MAK) $(ECHOGS_XE) $(pdiff_)
  1437.     $(SETMOD) pdiff $(pdiff_)
  1438.  
  1439. spdiff.$(OBJ): spdiff.c $(AK) $(stdio__h)\
  1440.  $(spdiffx_h) $(strimpl_h)
  1441.  
  1442. # ---------------- PNG pixel prediction filters ---------------- #
  1443. # The Predictor facility of the LZW and Flate filters uses these.
  1444.  
  1445. pngp_=spngp.$(OBJ)
  1446. pngp.dev: $(LIB_MAK) $(ECHOGS_XE) $(pngp_)
  1447.     $(SETMOD) pngp $(pngp_)
  1448.  
  1449. spngp.$(OBJ): spngp.c $(AK) $(memory__h)\
  1450.   $(spngpx_h) $(strimpl_h)
  1451.  
  1452. # ---------------- RunLength filters ---------------- #
  1453. # These are used by clists and also by Level 2 in general.
  1454.  
  1455. rle_=srle.$(OBJ)
  1456. rle.dev: $(LIB_MAK) $(ECHOGS_XE) $(rle_)
  1457.     $(SETMOD) rle $(rle_)
  1458.  
  1459. srle.$(OBJ): srle.c $(AK) $(stdio__h) $(memory__h) \
  1460.   $(srlx_h) $(strimpl_h)
  1461.  
  1462. rld_=srld.$(OBJ)
  1463. rld.dev: $(LIB_MAK) $(ECHOGS_XE) $(rld_)
  1464.     $(SETMOD) rld $(rld_)
  1465.  
  1466. srld.$(OBJ): srld.c $(AK) $(stdio__h) $(memory__h) \
  1467.   $(srlx_h) $(strimpl_h)
  1468.  
  1469. # ---------------- String encoding/decoding filters ---------------- #
  1470. # These are used by the PostScript and PDF writers, and also by the
  1471. # PostScript interpreter.
  1472.  
  1473. scantab.$(OBJ): scantab.c $(AK) $(stdpre_h)\
  1474.  $(scanchar_h) $(scommon_h)
  1475.  
  1476. sfilter2.$(OBJ): sfilter2.c $(AK) $(memory__h) $(stdio__h)\
  1477.  $(sa85x_h) $(scanchar_h) $(sbtx_h) $(strimpl_h)
  1478.  
  1479. sstring.$(OBJ): sstring.c $(AK) $(stdio__h) $(memory__h) $(string__h)\
  1480.  $(scanchar_h) $(sstring_h) $(strimpl_h)
  1481.  
  1482. # ---------------- zlib filters ---------------- #
  1483. # These are used by clists and are also available as filters.
  1484.  
  1485. szlibc_=szlibc.$(OBJ)
  1486.  
  1487. szlibc.$(OBJ): szlibc.c $(AK) $(std_h) \
  1488.   $(gsmemory_h) $(gsstruct_h) $(gstypes_h) $(strimpl_h) $(szlibx_h)
  1489.     $(CCCZ) szlibc.c
  1490.  
  1491. szlibe_=$(szlibc_) szlibe.$(OBJ)
  1492. szlibe.dev: $(LIB_MAK) $(ECHOGS_XE) zlibe.dev $(szlibe_)
  1493.     $(SETMOD) szlibe $(szlibe_)
  1494.     $(ADDMOD) szlibe -include zlibe
  1495.  
  1496. szlibe.$(OBJ): szlibe.c $(AK) $(std_h) \
  1497.   $(gsmemory_h) $(strimpl_h) $(szlibx_h)
  1498.     $(CCCZ) szlibe.c
  1499.  
  1500. szlibd_=$(szlibc_) szlibd.$(OBJ)
  1501. szlibd.dev: $(LIB_MAK) $(ECHOGS_XE) zlibd.dev $(szlibd_)
  1502.     $(SETMOD) szlibd $(szlibd_)
  1503.     $(ADDMOD) szlibd -include zlibd
  1504.  
  1505. szlibd.$(OBJ): szlibd.c $(AK) $(std_h) \
  1506.   $(gsmemory_h) $(strimpl_h) $(szlibx_h)
  1507.     $(CCCZ) szlibd.c
  1508.  
  1509. # ---------------- Command lists ---------------- #
  1510.  
  1511. gxcldev_h=gxcldev.h $(gxclist_h) $(gsropt_h) $(gxht_h) $(gxtmap_h) $(gxdht_h)\
  1512.   $(strimpl_h) $(scfx_h) $(srlx_h)
  1513. gxclpage_h=gxclpage.h $(gxclio_h)
  1514. gxclpath_h=gxclpath.h $(gxfixed_h)
  1515.  
  1516. # Command list package.  Currently the higher-level facilities are required,
  1517. # but eventually they will be optional.
  1518. clist.dev: $(LIB_MAK) $(ECHOGS_XE) clbase.dev clpath.dev
  1519.     $(SETMOD) clist -include clbase clpath
  1520.  
  1521. # Base command list facility.
  1522. clbase1_=gxclist.$(OBJ) gxclbits.$(OBJ) gxclpage.$(OBJ)
  1523. clbase2_=gxclread.$(OBJ) gxclrect.$(OBJ) stream.$(OBJ)
  1524. clbase_=$(clbase1_) $(clbase2_)
  1525. clbase.dev: $(LIB_MAK) $(ECHOGS_XE) $(clbase_) cl$(BAND_LIST_STORAGE).dev \
  1526.   cfe.dev cfd.dev rle.dev rld.dev
  1527.     $(SETMOD) clbase $(clbase1_)
  1528.     $(ADDMOD) clbase -obj $(clbase2_)
  1529.     $(ADDMOD) clbase -include cl$(BAND_LIST_STORAGE) cfe cfd rle rld
  1530.  
  1531. gdevht_h=gdevht.h $(gzht_h)
  1532.  
  1533. gdevht.$(OBJ): gdevht.c $(GXERR) \
  1534.   $(gdevht_h) $(gxdcconv_h) $(gxdcolor_h) $(gxdevice_h) $(gxdither_h)
  1535.  
  1536. gxclist.$(OBJ): gxclist.c $(GXERR) $(memory__h) $(gp_h) $(gpcheck_h)\
  1537.  $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  1538.  
  1539. gxclbits.$(OBJ): gxclbits.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1540.  $(gsbitops_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h) $(gxfmap_h)
  1541.  
  1542. gxclpage.$(OBJ): gxclpage.c $(AK)\
  1543.  $(gdevprn_h) $(gxcldev_h) $(gxclpage_h)
  1544.  
  1545. # (gxclread shouldn't need gxclpath.h)
  1546. gxclread.$(OBJ): gxclread.c $(GXERR) $(memory__h) $(gp_h) $(gpcheck_h)\
  1547.  $(gdevht_h)\
  1548.  $(gsbitops_h) $(gscoord_h) $(gsdevice_h) $(gsstate_h)\
  1549.  $(gxcldev_h) $(gxclpath_h) $(gxcmap_h) $(gxcspace_h) $(gxdcolor_h)\
  1550.  $(gxdevice_h) $(gxdevmem_h)\
  1551.  $(gxhttile_h) $(gxpaint_h) $(gzacpath_h) $(gzcpath_h) $(gzpath_h)\
  1552.  $(stream_h) $(strimpl_h)
  1553.  
  1554. gxclrect.$(OBJ): gxclrect.c $(GXERR)\
  1555.  $(gsutil_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  1556.  
  1557. # Higher-level command list facilities.
  1558. clpath_=gxclimag.$(OBJ) gxclpath.$(OBJ)
  1559. clpath.dev: $(LIB_MAK) $(ECHOGS_XE) $(clpath_) psl2cs.dev
  1560.     $(SETMOD) clpath $(clpath_)
  1561.     $(ADDMOD) clpath -include psl2cs
  1562.     $(ADDMOD) clpath -init climag clpath
  1563.  
  1564. gxclimag.$(OBJ): gxclimag.c $(GXERR) $(math__h) $(memory__h)\
  1565.  $(gscspace_h)\
  1566.  $(gxarith_h) $(gxcldev_h) $(gxclpath_h) $(gxdevice_h) $(gxdevmem_h)\
  1567.  $(gxfmap_h)\
  1568.  $(siscale_h) $(strimpl_h)
  1569.  
  1570. gxclpath.$(OBJ): gxclpath.c $(GXERR) $(math__h) $(memory__h) $(gpcheck_h)\
  1571.  $(gxcldev_h) $(gxclpath_h) $(gxcolor2_h) $(gxdevice_h) $(gxdevmem_h)\
  1572.  $(gxpaint_h) \
  1573.  $(gzcpath_h) $(gzpath_h)
  1574.  
  1575. # Implement band lists on files.
  1576.  
  1577. clfile_=gxclfile.$(OBJ)
  1578. clfile.dev: $(LIB_MAK) $(ECHOGS_XE) $(clfile_)
  1579.     $(SETMOD) clfile $(clfile_)
  1580.  
  1581. gxclfile.$(OBJ): gxclfile.c $(stdio__h) $(string__h) \
  1582.   $(gp_h) $(gsmemory_h) $(gserror_h) $(gserrors_h) $(gxclio_h)
  1583.  
  1584. # Implement band lists in memory (RAM).
  1585.  
  1586. clmemory_=gxclmem.$(OBJ) gxcl$(BAND_LIST_COMPRESSOR).$(OBJ)
  1587. clmemory.dev: $(LIB_MAK) $(ECHOGS_XE) $(clmemory_) s$(BAND_LIST_COMPRESSOR)e.dev s$(BAND_LIST_COMPRESSOR)d.dev
  1588.     $(SETMOD) clmemory $(clmemory_)
  1589.     $(ADDMOD) clmemory -include s$(BAND_LIST_COMPRESSOR)e s$(BAND_LIST_COMPRESSOR)d
  1590.     $(ADDMOD) clmemory -init cl_$(BAND_LIST_COMPRESSOR)
  1591.  
  1592. gxclmem_h=gxclmem.h $(gxclio_h) $(strimpl_h)
  1593.  
  1594. gxclmem.$(OBJ): gxclmem.c $(GXERR) $(LIB_MAK) $(memory__h) \
  1595.   $(gxclmem_h)
  1596.  
  1597. # Implement the compression method for RAM-based band lists.
  1598.  
  1599. gxcllzw.$(OBJ): gxcllzw.c $(std_h)\
  1600.  $(gsmemory_h) $(gstypes_h) $(gxclmem_h) $(slzwx_h)
  1601.  
  1602. gxclzlib.$(OBJ): gxclzlib.c $(std_h)\
  1603.  $(gsmemory_h) $(gstypes_h) $(gxclmem_h) $(szlibx_h)
  1604.     $(CCCZ) gxclzlib.c
  1605.  
  1606. # ---------------- Page devices ---------------- #
  1607. # We include this here, rather than in devs.mak, because it is more like
  1608. # a feature than a simple device.
  1609.  
  1610. page_=gdevprn.$(OBJ)
  1611. page.dev: $(LIB_MAK) $(ECHOGS_XE) $(page_) clist.dev
  1612.     $(SETMOD) page $(page_)
  1613.     $(ADDMOD) page -include clist
  1614.  
  1615. gdevprn.$(OBJ): gdevprn.c $(ctype__h) \
  1616.   $(gdevprn_h) $(gp_h) $(gsparam_h) $(gxclio_h)
  1617.  
  1618. # ---------------- Vector devices ---------------- #
  1619. # We include this here for the same reasons as page.dev.
  1620.  
  1621. gdevvec_h=gdevvec.h $(gdevbbox_h) $(gsropt_h) $(gxdevice_h) $(gxistate_h) $(stream_h)
  1622.  
  1623. vector_=gdevvec.$(OBJ)
  1624. vector.dev: $(LIB_MAK) $(ECHOGS_XE) $(vector_) bbox.dev
  1625.     $(SETMOD) vector $(vector_)
  1626.     $(ADDMOD) vector -include bbox
  1627.  
  1628. gdevvec.$(OBJ): gdevvec.c $(GXERR) $(math__h) $(memory__h) $(string__h)\
  1629.  $(gdevvec_h) $(gp_h) $(gscspace_h) $(gsparam_h) $(gsutil_h)\
  1630.  $(gxdcolor_h) $(gxfixed_h) $(gxpaint_h)\
  1631.  $(gzcpath_h) $(gzpath_h)
  1632.  
  1633. # ---------------- Image scaling filter ---------------- #
  1634.  
  1635. iscale_=siscale.$(OBJ)
  1636. iscale.dev: $(LIB_MAK) $(ECHOGS_XE) $(iscale_)
  1637.     $(SETMOD) iscale $(iscale_)
  1638.  
  1639. siscale.$(OBJ): siscale.c $(AK) $(math__h) $(memory__h) $(stdio__h) \
  1640.   $(siscale_h) $(strimpl_h)
  1641.  
  1642. # ---------------- RasterOp et al ---------------- #
  1643. # Currently this module is required, but it should be optional.
  1644.  
  1645. roplib_=gdevmrop.$(OBJ) gsrop.$(OBJ) gsroptab.$(OBJ)
  1646. roplib.dev: $(LIB_MAK) $(ECHOGS_XE) $(roplib_)
  1647.     $(SETMOD) roplib $(roplib_)
  1648.     $(ADDMOD) roplib -init roplib
  1649.  
  1650. gdevrun.$(OBJ): gdevrun.c $(GXERR) $(memory__h) \
  1651.   $(gxdevice_h) $(gxdevmem_h)
  1652.  
  1653. gdevmrop.$(OBJ): gdevmrop.c $(GXERR) $(memory__h) \
  1654.   $(gsbittab_h) $(gsropt_h) \
  1655.   $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) $(gxdevrop_h) \
  1656.   $(gdevmrop_h)
  1657.  
  1658. gsrop.$(OBJ): gsrop.c $(GXERR) \
  1659.   $(gsrop_h) $(gzstate_h)
  1660.  
  1661. gsroptab.$(OBJ): gsroptab.c $(stdpre_h) $(gsropt_h)
  1662.     $(CCLEAF) gsroptab.c
  1663.  
  1664. # -------- Composite (PostScript Type 0) font support -------- #
  1665.  
  1666. cmaplib_=gsfcmap.$(OBJ)
  1667. cmaplib.dev: $(LIB_MAK) $(ECHOGS_XE) $(cmaplib_)
  1668.     $(SETMOD) cmaplib $(cmaplib_)
  1669.  
  1670. gsfcmap.$(OBJ): gsfcmap.c $(GXERR)\
  1671.  $(gsstruct_h) $(gxfcmap_h)
  1672.  
  1673. psf0lib_=gschar0.$(OBJ) gsfont0.$(OBJ)
  1674. psf0lib.dev: $(LIB_MAK) $(ECHOGS_XE) cmaplib.dev $(psf0lib_)
  1675.     $(SETMOD) psf0lib $(psf0lib_)
  1676.     $(ADDMOD) psf0lib -include cmaplib
  1677.  
  1678. gschar0.$(OBJ): gschar0.c $(GXERR) $(memory__h)\
  1679.  $(gsstruct_h) $(gxfixed_h) $(gxdevice_h) $(gxdevmem_h)\
  1680.  $(gsfcmap_h) $(gxfont_h) $(gxfont0_h) $(gxchar_h)
  1681.  
  1682. gsfont0.$(OBJ): gsfont0.c $(GXERR) $(memory__h)\
  1683.  $(gsmatrix_h) $(gsstruct_h) $(gxfixed_h) $(gxdevmem_h) $(gxfcache_h)\
  1684.  $(gxfont_h) $(gxfont0_h) $(gxchar_h) $(gxdevice_h)
  1685.  
  1686. # ---------------- Pattern color ---------------- #
  1687.  
  1688. patlib_=gspcolor.$(OBJ) gxclip2.$(OBJ) gxpcmap.$(OBJ)
  1689. patlib.dev: $(LIB_MAK) $(ECHOGS_XE) cmyklib.dev psl2cs.dev $(patlib_)
  1690.     $(SETMOD) patlib -include cmyklib psl2cs
  1691.     $(ADDMOD) patlib -obj $(patlib_)
  1692.  
  1693. gspcolor.$(OBJ): gspcolor.c $(GXERR) $(math__h) \
  1694.   $(gsimage_h) $(gspath_h) $(gsrop_h) $(gsstruct_h) $(gsutil_h) \
  1695.   $(gxarith_h) $(gxcolor2_h) $(gxcoord_h) $(gxclip2_h) $(gxcspace_h) \
  1696.   $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) \
  1697.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gxpcolor_h) $(gzstate_h)
  1698.  
  1699. gxclip2.$(OBJ): gxclip2.c $(GXERR) $(memory__h) \
  1700.   $(gsstruct_h) $(gxclip2_h) $(gxdevice_h) $(gxdevmem_h)
  1701.  
  1702. gxpcmap.$(OBJ): gxpcmap.c $(GXERR) $(math__h) $(memory__h)\
  1703.  $(gsstruct_h) $(gsutil_h)\
  1704.  $(gxcolor2_h) $(gxcspace_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h)\
  1705.  $(gxfixed_h) $(gxmatrix_h) $(gxpcolor_h)\
  1706.  $(gzcpath_h) $(gzpath_h) $(gzstate_h)
  1707.  
  1708. # ---------------- PostScript Type 1 (and Type 4) fonts ---------------- #
  1709.  
  1710. type1lib_=gxtype1.$(OBJ) gxhint1.$(OBJ) gxhint2.$(OBJ) gxhint3.$(OBJ)
  1711.  
  1712. gscrypt1_h=gscrypt1.h
  1713. gstype1_h=gstype1.h
  1714. gxfont1_h=gxfont1.h
  1715. gxop1_h=gxop1.h
  1716. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h) $(gxop1_h)
  1717.  
  1718. gxtype1.$(OBJ): gxtype1.c $(GXERR) $(math__h)\
  1719.  $(gsccode_h) $(gsline_h) $(gsstruct_h)\
  1720.  $(gxarith_h) $(gxcoord_h) $(gxfixed_h) $(gxmatrix_h)\
  1721.  $(gxfont_h) $(gxfont1_h) $(gxistate_h) $(gxtype1_h)\
  1722.  $(gzpath_h)
  1723.  
  1724. gxhint1.$(OBJ): gxhint1.c $(GXERR)\
  1725.  $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1726.  $(gxfont_h) $(gxfont1_h) $(gxtype1_h)
  1727.  
  1728. gxhint2.$(OBJ): gxhint2.c $(GXERR) $(memory__h)\
  1729.  $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1730.  $(gxfont_h) $(gxfont1_h) $(gxtype1_h)
  1731.  
  1732. gxhint3.$(OBJ): gxhint3.c $(GXERR) $(math__h)\
  1733.  $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1734.  $(gxfont_h) $(gxfont1_h) $(gxtype1_h)\
  1735.  $(gzpath_h)
  1736.  
  1737. # Type 1 charstrings
  1738.  
  1739. psf1lib_=gstype1.$(OBJ)
  1740. psf1lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psf1lib_) $(type1lib_)
  1741.     $(SETMOD) psf1lib $(psf1lib_)
  1742.     $(ADDMOD) psf1lib $(type1lib_)
  1743.     $(ADDMOD) psf1lib -init gstype1
  1744.  
  1745. gstype1.$(OBJ): gstype1.c $(GXERR) $(math__h) $(memory__h)\
  1746.  $(gsstruct_h)\
  1747.  $(gxarith_h) $(gxcoord_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1748.  $(gxfont_h) $(gxfont1_h) $(gxistate_h) $(gxtype1_h)\
  1749.  $(gzpath_h)
  1750.  
  1751. # Type 2 charstrings
  1752.  
  1753. psf2lib_=gstype2.$(OBJ)
  1754. psf2lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psf2lib_) $(type1lib_)
  1755.     $(SETMOD) psf2lib $(psf2lib_)
  1756.     $(ADDMOD) psf2lib $(type1lib_)
  1757.     $(ADDMOD) psf2lib -init gstype2
  1758.  
  1759. gstype2.$(OBJ): gstype2.c $(GXERR) $(math__h) $(memory__h)\
  1760.  $(gsstruct_h)\
  1761.  $(gxarith_h) $(gxcoord_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1762.  $(gxfont_h) $(gxfont1_h) $(gxistate_h) $(gxtype1_h)\
  1763.  $(gzpath_h)
  1764.  
  1765. # ---------------- TrueType and PostScript Type 42 fonts ---------------- #
  1766.  
  1767. ttflib_=gstype42.$(OBJ)
  1768. ttflib.dev: $(LIB_MAK) $(ECHOGS_XE) $(ttflib_)
  1769.     $(SETMOD) ttflib $(ttflib_)
  1770.  
  1771. gxfont42_h=gxfont42.h
  1772.  
  1773. gstype42.$(OBJ): gstype42.c $(GXERR) $(memory__h) \
  1774.   $(gsccode_h) $(gsmatrix_h) $(gsstruct_h) \
  1775.   $(gxfixed_h) $(gxfont_h) $(gxfont42_h) $(gxistate_h) $(gxpath_h)
  1776.  
  1777. # -------- Level 1 color extensions (CMYK color and colorimage) -------- #
  1778.  
  1779. cmyklib_=gscolor1.$(OBJ) gsht1.$(OBJ)
  1780. cmyklib.dev: $(LIB_MAK) $(ECHOGS_XE) $(cmyklib_)
  1781.     $(SETMOD) cmyklib $(cmyklib_)
  1782.     $(ADDMOD) cmyklib -init gscolor1
  1783.  
  1784. gscolor1.$(OBJ): gscolor1.c $(GXERR) \
  1785.   $(gsccolor_h) $(gscolor1_h) $(gsstruct_h) $(gsutil_h) \
  1786.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) \
  1787.   $(gzstate_h)
  1788.  
  1789. gsht1.$(OBJ): gsht1.c $(GXERR) $(memory__h)\
  1790.  $(gsstruct_h) $(gsutil_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  1791.  
  1792. colimlib_=gximage3.$(OBJ)
  1793. colimlib.dev: $(LIB_MAK) $(ECHOGS_XE) $(colimlib_)
  1794.     $(SETMOD) colimlib $(colimlib_)
  1795.     $(ADDMOD) colimlib -init gximage3
  1796.  
  1797. gximage3.$(OBJ): gximage3.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1798.  $(gsccolor_h) $(gspaint_h)\
  1799.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcconv_h) $(gxdcolor_h)\
  1800.  $(gxdevice_h) $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h)\
  1801.  $(gximage_h) $(gxistate_h) $(gxmatrix_h)\
  1802.  $(gzpath_h) $(gzstate_h)
  1803.  
  1804. # ---------------- HSB color ---------------- #
  1805.  
  1806. hsblib_=gshsb.$(OBJ)
  1807. hsblib.dev: $(LIB_MAK) $(ECHOGS_XE) $(hsblib_)
  1808.     $(SETMOD) hsblib $(hsblib_)
  1809.  
  1810. gshsb.$(OBJ): gshsb.c $(GX) \
  1811.   $(gscolor_h) $(gshsb_h) $(gxfrac_h)
  1812.  
  1813. # ---- Level 1 path miscellany (arcs, pathbbox, path enumeration) ---- #
  1814.  
  1815. path1lib_=gspath1.$(OBJ)
  1816. path1lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(path1lib_)
  1817.     $(SETMOD) path1lib $(path1lib_)
  1818.  
  1819. gspath1.$(OBJ): gspath1.c $(GXERR) $(math__h) \
  1820.   $(gscoord_h) $(gspath_h) $(gsstruct_h) \
  1821.   $(gxfarith_h) $(gxfixed_h) $(gxmatrix_h) \
  1822.   $(gzstate_h) $(gzpath_h)
  1823.  
  1824. # --------------- Level 2 color space and color image support --------------- #
  1825.  
  1826. psl2cs_=gscolor2.$(OBJ)
  1827. psl2cs.dev: $(LIB_MAK) $(ECHOGS_XE) $(psl2cs_)
  1828.     $(SETMOD) psl2cs $(psl2cs_)
  1829.  
  1830. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  1831.   $(gxarith_h) $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h) $(gxmatrix_h) \
  1832.   $(gzstate_h)
  1833.  
  1834. psl2lib_=gximage4.$(OBJ) gximage5.$(OBJ)
  1835. psl2lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psl2lib_) colimlib.dev psl2cs.dev
  1836.     $(SETMOD) psl2lib $(psl2lib_)
  1837.     $(ADDMOD) psl2lib -init gximage4 gximage5
  1838.     $(ADDMOD) psl2lib -include colimlib psl2cs
  1839.  
  1840. gximage4.$(OBJ): gximage4.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1841.  $(gsccolor_h) $(gspaint_h)\
  1842.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
  1843.  $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h) $(gximage_h) $(gxistate_h)\
  1844.  $(gxmatrix_h)\
  1845.  $(gzpath_h)
  1846.  
  1847. gximage5.$(OBJ): gximage5.c $(GXERR) $(math__h) $(memory__h) $(gpcheck_h)\
  1848.  $(gsccolor_h) $(gspaint_h)\
  1849.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
  1850.  $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h) $(gximage_h) $(gxistate_h)\
  1851.  $(gxmatrix_h)\
  1852.  $(gzpath_h)
  1853.  
  1854. # ---------------- Display Postscript / Level 2 support ---------------- #
  1855.  
  1856. dps2lib_=gsdps1.$(OBJ)
  1857. dps2lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(dps2lib_)
  1858.     $(SETMOD) dps2lib $(dps2lib_)
  1859.  
  1860. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(math__h)\
  1861.  $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gspath2_h)\
  1862.  $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gzcpath_h) $(gzpath_h) $(gzstate_h)
  1863.  
  1864. # ---------------- CIE color ---------------- #
  1865.  
  1866. cielib_=gscie.$(OBJ) gxctable.$(OBJ)
  1867. cielib.dev: $(LIB_MAK) $(ECHOGS_XE) $(cielib_)
  1868.     $(SETMOD) cielib $(cielib_)
  1869.  
  1870. gscie.$(OBJ): gscie.c $(GXERR) $(math__h) \
  1871.   $(gscie_h) $(gscolor2_h) $(gsmatrix_h) $(gsstruct_h) \
  1872.   $(gxarith_h) $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) $(gzstate_h)
  1873.  
  1874. gxctable.$(OBJ): gxctable.c $(GX) \
  1875.   $(gxfixed_h) $(gxfrac_h) $(gxctable_h)
  1876.  
  1877. # ---------------- Separation colors ---------------- #
  1878.  
  1879. seprlib_=gscsepr.$(OBJ)
  1880. seprlib.dev: $(LIB_MAK) $(ECHOGS_XE) $(seprlib_)
  1881.     $(SETMOD) seprlib $(seprlib_)
  1882.  
  1883. gscsepr.$(OBJ): gscsepr.c $(GXERR)\
  1884.  $(gscsepr_h) $(gsmatrix_h) $(gsrefct_h)\
  1885.  $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h) $(gzstate_h)
  1886.  
  1887. # ----------------------- Platform-specific modules ----------------------- #
  1888. # Platform-specific code doesn't really belong here: this is code that is
  1889. # shared among multiple platforms.
  1890.  
  1891. # Frame buffer implementations.
  1892.  
  1893. gp_nofb.$(OBJ): gp_nofb.c $(GX) \
  1894.   $(gp_h) $(gxdevice_h)
  1895.  
  1896. gp_dosfb.$(OBJ): gp_dosfb.c $(AK) $(malloc__h) $(memory__h)\
  1897.  $(gx_h) $(gp_h) $(gserrors_h) $(gxdevice_h)
  1898.  
  1899. # MS-DOS file system, also used by Desqview/X.
  1900. gp_dosfs.$(OBJ): gp_dosfs.c $(AK) $(dos__h) $(gp_h) $(gx_h)
  1901.  
  1902. # MS-DOS file enumeration, *not* used by Desqview/X.
  1903. gp_dosfe.$(OBJ): gp_dosfe.c $(AK) $(stdio__h) $(memory__h) $(string__h) \
  1904.   $(dos__h) $(gstypes_h) $(gsmemory_h) $(gsstruct_h) $(gp_h) $(gsutil_h)
  1905.  
  1906. # Other MS-DOS facilities.
  1907. gp_msdos.$(OBJ): gp_msdos.c $(AK) $(dos__h) $(stdio__h) $(string__h)\
  1908.  $(gsmemory_h) $(gstypes_h) $(gp_h)
  1909.  
  1910. # Unix(-like) file system, also used by Desqview/X.
  1911. gp_unifs.$(OBJ): gp_unifs.c $(AK) $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1912.   $(gsstruct_h) $(gsutil_h) $(stat__h) $(dirent__h)
  1913.  
  1914. # Unix(-like) file name syntax, *not* used by Desqview/X.
  1915. gp_unifn.$(OBJ): gp_unifn.c $(AK) $(gx_h) $(gp_h)
  1916.  
  1917. # ----------------------------- Main program ------------------------------ #
  1918.  
  1919. # Main program for library testing
  1920.  
  1921. gslib.$(OBJ): gslib.c $(AK) $(math__h) \
  1922.   $(gx_h) $(gp_h) $(gserrors_h) $(gsmatrix_h) $(gsstate_h) $(gscspace_h) \
  1923.   $(gscdefs_h) $(gscolor2_h) $(gscoord_h) $(gslib_h) $(gsparam_h) \
  1924.   $(gspaint_h) $(gspath_h) $(gsstruct_h) $(gsutil_h) \
  1925.   $(gxalloc_h) $(gxdevice_h)
  1926. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  1927. # This file is part of Aladdin Ghostscript.
  1928. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  1929. # or distributor accepts any responsibility for the consequences of using it,
  1930. # or for whether it serves any particular purpose or works at all, unless he
  1931. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  1932. # License (the "License") for full details.
  1933. # Every copy of Aladdin Ghostscript must include a copy of the License,
  1934. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  1935. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  1936. # under certain conditions described in the License.  Among other things, the
  1937. # License requires that the copyright notice and this notice be preserved on
  1938. # all copies.
  1939.  
  1940. # (Platform-independent) makefile for language interpreters.
  1941. # See the end of gs.mak for where this fits into the build process.
  1942.  
  1943. # Define the name of this makefile.
  1944. INT_MAK=int.mak
  1945.  
  1946. # ======================== Interpreter support ======================== #
  1947.  
  1948. # This is support code for all interpreters, not just PostScript and PDF.
  1949. # It knows about the PostScript data types, but isn't supposed to
  1950. # depend on anything outside itself.
  1951.  
  1952. errors_h=errors.h
  1953. idebug_h=idebug.h
  1954. idict_h=idict.h
  1955. igc_h=igc.h
  1956. igcstr_h=igcstr.h
  1957. iname_h=iname.h
  1958. inamedef_h=inamedef.h $(gconfigv_h) $(iname_h)
  1959. ipacked_h=ipacked.h
  1960. iref_h=iref.h
  1961. isave_h=isave.h
  1962. isstate_h=isstate.h
  1963. istruct_h=istruct.h $(gsstruct_h)
  1964. iutil_h=iutil.h
  1965. ivmspace_h=ivmspace.h $(gsgc_h)
  1966. opdef_h=opdef.h
  1967. # Nested include files
  1968. ghost_h=ghost.h $(gx_h) $(iref_h)
  1969. imemory_h=imemory.h $(gsalloc_h) $(ivmspace_h)
  1970. ialloc_h=ialloc.h $(imemory_h)
  1971. iastruct_h=iastruct.h $(gxobj_h) $(ialloc_h)
  1972. iastate_h=iastate.h $(gxalloc_h) $(ialloc_h) $(istruct_h)
  1973. store_h=store.h $(ialloc_h)
  1974.  
  1975. GH=$(AK) $(ghost_h)
  1976.  
  1977. isupport1_=ialloc.$(OBJ) igc.$(OBJ) igcref.$(OBJ) igcstr.$(OBJ)
  1978. isupport2_=ilocate.$(OBJ) iname.$(OBJ) isave.$(OBJ)
  1979. isupport_=$(isupport1_) $(isupport2_)
  1980. isupport.dev: $(INT_MAK) $(ECHOGS_XE) $(isupport_)
  1981.     $(SETMOD) isupport $(isupport1_)
  1982.     $(ADDMOD) isupport -obj $(isupport2_)
  1983.     $(ADDMOD) isupport -init igcref
  1984.  
  1985. ialloc.$(OBJ): ialloc.c $(AK) $(memory__h) $(gx_h)\
  1986.  $(errors_h) $(gsstruct_h) $(gxarith_h)\
  1987.  $(iastate_h) $(iref_h) $(ivmspace_h) $(store_h)
  1988.  
  1989. # igc.c, igcref.c, and igcstr.c should really be in the dpsand2 list,
  1990. # but since all the GC enumeration and relocation routines refer to them,
  1991. # it's too hard to separate them out from the Level 1 base.
  1992. igc.$(OBJ): igc.c $(GH) $(memory__h)\
  1993.   $(errors_h) $(gsexit_h) $(gsmdebug_h) $(gsstruct_h) $(gsutil_h) \
  1994.   $(iastate_h) $(idict_h) $(igc_h) $(igcstr_h) $(inamedef_h) \
  1995.   $(ipacked_h) $(isave_h) $(isstate_h) $(istruct_h) $(opdef_h)
  1996.  
  1997. igcref.$(OBJ): igcref.c $(GH) $(memory__h)\
  1998.  $(gsexit_h) $(gsstruct_h)\
  1999.  $(iastate_h) $(idebug_h) $(igc_h) $(iname_h) $(ipacked_h) $(store_h)
  2000.  
  2001. igcstr.$(OBJ): igcstr.c $(GH) $(memory__h)\
  2002.  $(gsmdebug_h) $(gsstruct_h) $(iastate_h) $(igcstr_h)
  2003.  
  2004. ilocate.$(OBJ): ilocate.c $(GH) $(memory__h)\
  2005.  $(errors_h) $(gsexit_h) $(gsstruct_h)\
  2006.  $(iastate_h) $(idict_h) $(igc_h) $(igcstr_h) $(iname_h)\
  2007.  $(ipacked_h) $(isstate_h) $(iutil_h) $(ivmspace_h)\
  2008.  $(store_h)
  2009.  
  2010. iname.$(OBJ): iname.c $(GH) $(memory__h) $(string__h)\
  2011.  $(gsstruct_h) $(gxobj_h)\
  2012.  $(errors_h) $(imemory_h) $(inamedef_h) $(isave_h) $(store_h)
  2013.  
  2014. isave.$(OBJ): isave.c $(GH) $(memory__h)\
  2015.  $(errors_h) $(gsexit_h) $(gsstruct_h) $(gsutil_h)\
  2016.  $(iastate_h) $(inamedef_h) $(isave_h) $(isstate_h) $(ivmspace_h)\
  2017.  $(ipacked_h) $(store_h)
  2018.  
  2019. ### Include files
  2020.  
  2021. idparam_h=idparam.h
  2022. ilevel_h=ilevel.h
  2023. iparam_h=iparam.h $(gsparam_h)
  2024. istack_h=istack.h
  2025. iutil2_h=iutil2.h
  2026. opcheck_h=opcheck.h
  2027. opextern_h=opextern.h
  2028. # Nested include files
  2029. dstack_h=dstack.h $(istack_h)
  2030. estack_h=estack.h $(istack_h)
  2031. ostack_h=ostack.h $(istack_h)
  2032. oper_h=oper.h $(iutil_h) $(opcheck_h) $(opdef_h) $(opextern_h) $(ostack_h)
  2033.  
  2034. idebug.$(OBJ): idebug.c $(GH) $(string__h)\
  2035.  $(ialloc_h) $(idebug_h) $(idict_h) $(iname_h) $(istack_h) $(iutil_h) $(ivmspace_h)\
  2036.  $(ostack_h) $(opdef_h) $(ipacked_h) $(store_h)
  2037.  
  2038. idict.$(OBJ): idict.c $(GH) $(string__h) $(errors_h)\
  2039.  $(ialloc_h) $(idebug_h) $(ivmspace_h) $(inamedef_h) $(ipacked_h)\
  2040.  $(isave_h) $(store_h) $(iutil_h) $(idict_h) $(dstack_h)
  2041.  
  2042. idparam.$(OBJ): idparam.c $(GH) $(memory__h) $(string__h) $(errors_h)\
  2043.  $(gsmatrix_h) $(gsuid_h)\
  2044.  $(idict_h) $(idparam_h) $(ilevel_h) $(imemory_h) $(iname_h) $(iutil_h)\
  2045.  $(oper_h) $(store_h)
  2046.  
  2047. iparam.$(OBJ): iparam.c $(GH) $(memory__h) $(string__h) $(errors_h)\
  2048.  $(ialloc_h) $(idict_h) $(iname_h) $(imemory_h) $(iparam_h) $(istack_h) $(iutil_h) $(ivmspace_h)\
  2049.  $(opcheck_h) $(store_h)
  2050.  
  2051. istack.$(OBJ): istack.c $(GH) $(memory__h) \
  2052.   $(errors_h) $(gsstruct_h) $(gsutil_h) \
  2053.   $(ialloc_h) $(istack_h) $(istruct_h) $(iutil_h) $(ivmspace_h) $(store_h)
  2054.  
  2055. iutil.$(OBJ): iutil.c $(GH) $(math__h) $(memory__h) $(string__h)\
  2056.  $(gsccode_h) $(gsmatrix_h) $(gsutil_h) $(gxfont_h)\
  2057.  $(errors_h) $(idict_h) $(imemory_h) $(iutil_h) $(ivmspace_h)\
  2058.  $(iname_h) $(ipacked_h) $(oper_h) $(store_h)
  2059.  
  2060. # ======================== PostScript Level 1 ======================== #
  2061.  
  2062. ###### Include files
  2063.  
  2064. files_h=files.h
  2065. fname_h=fname.h
  2066. ichar_h=ichar.h
  2067. icharout_h=icharout.h
  2068. icolor_h=icolor.h
  2069. icontext_h=icontext.h $(imemory_h) $(istack_h)
  2070. icsmap_h=icsmap.h
  2071. ifont_h=ifont.h $(gsccode_h) $(gsstruct_h)
  2072. iht_h=iht.h
  2073. iimage_h=iimage.h
  2074. imain_h=imain.h $(gsexit_h)
  2075. imainarg_h=imainarg.h
  2076. iminst_h=iminst.h $(imain_h)
  2077. interp_h=interp.h
  2078. iparray_h=iparray.h
  2079. iscannum_h=iscannum.h
  2080. istream_h=istream.h
  2081. main_h=main.h $(iminst_h)
  2082. overlay_h=overlay.h
  2083. sbwbs_h=sbwbs.h
  2084. sfilter_h=sfilter.h $(gstypes_h)
  2085. shcgen_h=shcgen.h
  2086. smtf_h=smtf.h
  2087. # Nested include files
  2088. bfont_h=bfont.h $(ifont_h)
  2089. ifilter_h=ifilter.h $(istream_h) $(ivmspace_h)
  2090. igstate_h=igstate.h $(gsstate_h) $(gxstate_h) $(istruct_h)
  2091. iscan_h=iscan.h $(sa85x_h) $(sstring_h)
  2092. sbhc_h=sbhc.h $(shc_h)
  2093. # Include files for optional features
  2094. ibnum_h=ibnum.h
  2095.  
  2096. ### Initialization and scanning
  2097.  
  2098. iconfig=iconfig$(CONFIG)
  2099. $(iconfig).$(OBJ): iconf.c $(stdio__h) \
  2100.   $(gconfig_h) $(gscdefs_h) $(gsmemory_h) \
  2101.   $(files_h) $(iminst_h) $(iref_h) $(ivmspace_h) $(opdef_h) $(stream_h)
  2102.     $(RM_) gconfig.h
  2103.     $(RM_) $(iconfig).c
  2104.     $(CP_) $(gconfig_h) gconfig.h
  2105.     $(CP_) iconf.c $(iconfig).c
  2106.     $(CCC) $(iconfig).c
  2107.     $(RM_) gconfig.h
  2108.     $(RM_) $(iconfig).c
  2109.  
  2110. iinit.$(OBJ): iinit.c $(GH) $(string__h)\
  2111.  $(gscdefs_h) $(gsexit_h) $(gsstruct_h)\
  2112.  $(ialloc_h) $(idict_h) $(dstack_h) $(errors_h)\
  2113.  $(ilevel_h) $(iname_h) $(interp_h) $(opdef_h)\
  2114.  $(ipacked_h) $(iparray_h) $(iutil_h) $(ivmspace_h) $(store_h)
  2115.  
  2116. iscan.$(OBJ): iscan.c $(GH) $(memory__h)\
  2117.  $(ialloc_h) $(idict_h) $(dstack_h) $(errors_h) $(files_h)\
  2118.  $(ilevel_h) $(iutil_h) $(iscan_h) $(iscannum_h) $(istruct_h) $(ivmspace_h)\
  2119.  $(iname_h) $(ipacked_h) $(iparray_h) $(istream_h) $(ostack_h) $(store_h)\
  2120.  $(stream_h) $(strimpl_h) $(sfilter_h) $(scanchar_h)
  2121.  
  2122. iscannum.$(OBJ): iscannum.c $(GH) $(math__h)\
  2123.   $(errors_h) $(iscannum_h) $(scanchar_h) $(scommon_h) $(store_h)
  2124.  
  2125. ### Streams
  2126.  
  2127. sfilter1.$(OBJ): sfilter1.c $(AK) $(stdio__h) $(memory__h) \
  2128.   $(sfilter_h) $(strimpl_h)
  2129.  
  2130. ###### Operators
  2131.  
  2132. OP=$(GH) $(errors_h) $(oper_h)
  2133.  
  2134. ### Non-graphics operators
  2135.  
  2136. zarith.$(OBJ): zarith.c $(OP) $(math__h) $(store_h)
  2137.  
  2138. zarray.$(OBJ): zarray.c $(OP) $(memory__h) $(ialloc_h) $(ipacked_h) $(store_h)
  2139.  
  2140. zcontrol.$(OBJ): zcontrol.c $(OP) $(string__h)\
  2141.  $(estack_h) $(files_h) $(ipacked_h) $(iutil_h) $(store_h) $(stream_h)
  2142.  
  2143. zdict.$(OBJ): zdict.c $(OP) \
  2144.   $(dstack_h) $(idict_h) $(ilevel_h) $(iname_h) $(ipacked_h) $(ivmspace_h) \
  2145.   $(store_h)
  2146.  
  2147. zfile.$(OBJ): zfile.c $(OP) $(memory__h) $(string__h) $(gp_h)\
  2148.  $(gsstruct_h) $(gxiodev_h) \
  2149.  $(ialloc_h) $(estack_h) $(files_h) $(fname_h) $(ilevel_h) $(interp_h) $(iutil_h)\
  2150.  $(isave_h) $(main_h) $(sfilter_h) $(stream_h) $(strimpl_h) $(store_h)
  2151.  
  2152. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  2153.   $(files_h) $(ifilter_h) $(store_h) $(stream_h) $(strimpl_h) \
  2154.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  2155.  
  2156. zfilter.$(OBJ): zfilter.c $(OP) $(memory__h)\
  2157.  $(gsstruct_h) $(files_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) \
  2158.  $(sfilter_h) $(srlx_h) $(sstring_h) $(store_h) $(stream_h) $(strimpl_h)
  2159.  
  2160. zfname.$(OBJ): zfname.c $(OP) $(memory__h)\
  2161.  $(fname_h) $(gxiodev_h) $(ialloc_h) $(stream_h)
  2162.  
  2163. zfproc.$(OBJ): zfproc.c $(GH) $(memory__h)\
  2164.  $(errors_h) $(oper_h)\
  2165.  $(estack_h) $(files_h) $(gsstruct_h) $(ialloc_h) $(ifilter_h) $(istruct_h)\
  2166.  $(store_h) $(stream_h) $(strimpl_h)
  2167.  
  2168. zgeneric.$(OBJ): zgeneric.c $(OP) $(memory__h)\
  2169.  $(idict_h) $(estack_h) $(ivmspace_h) $(iname_h) $(ipacked_h) $(store_h)
  2170.  
  2171. ziodev.$(OBJ): ziodev.c $(OP) $(memory__h) $(stdio__h) $(string__h)\
  2172.  $(gp_h) $(gpcheck_h)\
  2173.  $(gsstruct_h) $(gxiodev_h)\
  2174.  $(files_h) $(ialloc_h) $(ivmspace_h) $(store_h) $(stream_h)
  2175.  
  2176. zmath.$(OBJ): zmath.c $(OP) $(math__h) $(gxfarith_h) $(store_h)
  2177.  
  2178. zmisc.$(OBJ): zmisc.c $(OP) $(gscdefs_h) $(gp_h) \
  2179.   $(errno__h) $(memory__h) $(string__h) \
  2180.   $(ialloc_h) $(idict_h) $(dstack_h) $(iname_h) $(ivmspace_h) $(ipacked_h) $(store_h)
  2181.  
  2182. zpacked.$(OBJ): zpacked.c $(OP) \
  2183.   $(ialloc_h) $(idict_h) $(ivmspace_h) $(iname_h) $(ipacked_h) $(iparray_h) \
  2184.   $(istack_h) $(store_h)
  2185.  
  2186. zrelbit.$(OBJ): zrelbit.c $(OP) $(gsutil_h) $(store_h) $(idict_h)
  2187.  
  2188. zstack.$(OBJ): zstack.c $(OP) $(memory__h)\
  2189.  $(ialloc_h) $(istack_h) $(store_h)
  2190.  
  2191. zstring.$(OBJ): zstring.c $(OP) $(memory__h)\
  2192.  $(gsutil_h)\
  2193.  $(ialloc_h) $(iname_h) $(ivmspace_h) $(store_h)
  2194.  
  2195. zsysvm.$(OBJ): zsysvm.c $(GH)\
  2196.  $(ialloc_h) $(ivmspace_h) $(oper_h) $(store_h)
  2197.  
  2198. ztoken.$(OBJ): ztoken.c $(OP) \
  2199.   $(estack_h) $(files_h) $(gsstruct_h) $(iscan_h) \
  2200.   $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  2201.  
  2202. ztype.$(OBJ): ztype.c $(OP) $(math__h) $(memory__h) $(string__h)\
  2203.  $(dstack_h) $(idict_h) $(imemory_h) $(iname_h)\
  2204.  $(iscan_h) $(iutil_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  2205.  
  2206. zvmem.$(OBJ): zvmem.c $(OP)\
  2207.  $(dstack_h) $(estack_h) $(files_h)\
  2208.  $(ialloc_h) $(idict_h) $(igstate_h) $(isave_h) $(store_h) $(stream_h)\
  2209.  $(gsmatrix_h) $(gsstate_h) $(gsstruct_h)
  2210.  
  2211. ### Graphics operators
  2212.  
  2213. zchar.$(OBJ): zchar.c $(OP)\
  2214.  $(gsstruct_h) $(gxarith_h) $(gxfixed_h) $(gxmatrix_h)\
  2215.  $(gxchar_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h)\
  2216.  $(dstack_h) $(estack_h) $(ialloc_h) $(ichar_h) $(idict_h) $(ifont_h)\
  2217.  $(ilevel_h) $(iname_h) $(igstate_h) $(ipacked_h) $(store_h)
  2218.  
  2219. # zcharout is used for Type 1 and Type 42 fonts only.
  2220. zcharout.$(OBJ): zcharout.c $(OP)\
  2221.  $(gschar_h) $(gxdevice_h) $(gxfont_h)\
  2222.  $(dstack_h) $(estack_h) $(ichar_h) $(icharout_h)\
  2223.  $(idict_h) $(ifont_h) $(igstate_h) $(store_h)
  2224.  
  2225. zcolor.$(OBJ): zcolor.c $(OP) \
  2226.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gxcmap_h) \
  2227.   $(ialloc_h) $(icolor_h) $(estack_h) $(iutil_h) $(igstate_h) $(store_h)
  2228.  
  2229. zdevice.$(OBJ): zdevice.c $(OP) $(string__h)\
  2230.  $(ialloc_h) $(idict_h) $(igstate_h) $(iname_h) $(interp_h) $(iparam_h) $(ivmspace_h)\
  2231.  $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  2232.  
  2233. zfont.$(OBJ): zfont.c $(OP)\
  2234.  $(gschar_h) $(gsstruct_h) $(gxdevice_h) $(gxfont_h) $(gxfcache_h)\
  2235.  $(gzstate_h)\
  2236.  $(ialloc_h) $(idict_h) $(igstate_h) $(iname_h) $(isave_h) $(ivmspace_h)\
  2237.  $(bfont_h) $(store_h)
  2238.  
  2239. zfont2.$(OBJ): zfont2.c $(OP) $(memory__h) $(string__h)\
  2240.  $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h)\
  2241.  $(ialloc_h) $(bfont_h) $(idict_h) $(idparam_h) $(ilevel_h) $(iname_h) $(istruct_h)\
  2242.  $(ipacked_h) $(store_h)
  2243.  
  2244. zgstate.$(OBJ): zgstate.c $(OP) $(math__h)\
  2245.  $(gsmatrix_h) $(ialloc_h) $(idict_h) $(igstate_h) $(istruct_h) $(store_h)
  2246.  
  2247. zht.$(OBJ): zht.c $(OP) $(memory__h)\
  2248.  $(gsmatrix_h) $(gsstate_h) $(gsstruct_h) $(gxdevice_h) $(gzht_h) \
  2249.  $(ialloc_h) $(estack_h) $(igstate_h) $(iht_h) $(store_h)
  2250.  
  2251. zimage.$(OBJ): zimage.c $(OP) \
  2252.   $(estack_h) $(ialloc_h) $(ifilter_h) $(igstate_h) $(iimage_h) $(ilevel_h) \
  2253.   $(gscspace_h) $(gsimage_h) $(gsmatrix_h) $(gsstruct_h) \
  2254.   $(store_h) $(stream_h)
  2255.  
  2256. zmatrix.$(OBJ): zmatrix.c $(OP)\
  2257.  $(gsmatrix_h) $(igstate_h) $(gscoord_h) $(store_h)
  2258.  
  2259. zpaint.$(OBJ): zpaint.c $(OP)\
  2260.  $(gspaint_h) $(igstate_h)
  2261.  
  2262. zpath.$(OBJ): zpath.c $(OP) $(math__h) \
  2263.   $(gsmatrix_h) $(gspath_h) $(igstate_h) $(store_h)
  2264.  
  2265. # Define the base PostScript language interpreter.
  2266. # This is the subset of PostScript Level 1 required by our PDF reader.
  2267.  
  2268. INT1=icontext.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ)
  2269. INT2=iinit.$(OBJ) interp.$(OBJ) iparam.$(OBJ) ireclaim.$(OBJ)
  2270. INT3=iscan.$(OBJ) iscannum.$(OBJ) istack.$(OBJ) iutil.$(OBJ)
  2271. INT4=scantab.$(OBJ) sfilter1.$(OBJ) sstring.$(OBJ) stream.$(OBJ)
  2272. Z1=zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ)
  2273. Z1OPS=zarith zarray zcontrol zdict
  2274. Z2=zfile.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zfname.$(OBJ) zfproc.$(OBJ)
  2275. Z2OPS=zfile zfileio zfilter zfproc
  2276. Z3=zgeneric.$(OBJ) ziodev.$(OBJ) zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ)
  2277. Z3OPS=zgeneric ziodev zmath zmisc zpacked
  2278. Z4=zrelbit.$(OBJ) zstack.$(OBJ) zstring.$(OBJ) zsysvm.$(OBJ)
  2279. Z4OPS=zrelbit zstack zstring zsysvm
  2280. Z5=ztoken.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ)
  2281. Z5OPS=ztoken ztype zvmem
  2282. Z6=zchar.$(OBJ) zcolor.$(OBJ) zdevice.$(OBJ) zfont.$(OBJ) zfont2.$(OBJ)
  2283. Z6OPS=zchar zcolor zdevice zfont zfont2
  2284. Z7=zgstate.$(OBJ) zht.$(OBJ) zimage.$(OBJ) zmatrix.$(OBJ) zpaint.$(OBJ) zpath.$(OBJ)
  2285. Z7OPS=zgstate zht zimage zmatrix zpaint zpath
  2286. # We have to be a little underhanded with *config.$(OBJ) so as to avoid
  2287. # circular definitions.
  2288. INT_OBJS=imainarg.$(OBJ) gsargs.$(OBJ) imain.$(OBJ) \
  2289.   $(INT1) $(INT2) $(INT3) $(INT4) \
  2290.   $(Z1) $(Z2) $(Z3) $(Z4) $(Z5) $(Z6) $(Z7)
  2291. INT_CONFIG=$(gconfig).$(OBJ) $(gscdefs).$(OBJ) $(iconfig).$(OBJ) \
  2292.   iccinit$(COMPILE_INITS).$(OBJ)
  2293. INT_ALL=$(INT_OBJS) $(INT_CONFIG)
  2294. # We omit libcore.dev, which should be included here, because problems
  2295. # with the Unix linker require libcore to appear last in the link list
  2296. # when libcore is really a library.
  2297. # We omit $(INT_CONFIG) from the dependency list because they have special
  2298. # dependency requirements and are added to the link list at the very end.
  2299. # zfilter.c shouldn't include the RLE and RLD filters, but we don't want to
  2300. # change this now.
  2301. psbase.dev: $(INT_MAK) $(ECHOGS_XE) $(INT_OBJS)\
  2302.  isupport.dev rld.dev rle.dev sfile.dev
  2303.     $(SETMOD) psbase imainarg.$(OBJ) gsargs.$(OBJ) imain.$(OBJ)
  2304.     $(ADDMOD) psbase -obj $(INT_CONFIG)
  2305.     $(ADDMOD) psbase -obj $(INT1)
  2306.     $(ADDMOD) psbase -obj $(INT2)
  2307.     $(ADDMOD) psbase -obj $(INT3)
  2308.     $(ADDMOD) psbase -obj $(INT4)
  2309.     $(ADDMOD) psbase -obj $(Z1)
  2310.     $(ADDMOD) psbase -oper $(Z1OPS)
  2311.     $(ADDMOD) psbase -obj $(Z2)
  2312.     $(ADDMOD) psbase -oper $(Z2OPS)
  2313.     $(ADDMOD) psbase -obj $(Z3)
  2314.     $(ADDMOD) psbase -oper $(Z3OPS)
  2315.     $(ADDMOD) psbase -obj $(Z4)
  2316.     $(ADDMOD) psbase -oper $(Z4OPS)
  2317.     $(ADDMOD) psbase -obj $(Z5)
  2318.     $(ADDMOD) psbase -oper $(Z5OPS)
  2319.     $(ADDMOD) psbase -obj $(Z6)
  2320.     $(ADDMOD) psbase -oper $(Z6OPS)
  2321.     $(ADDMOD) psbase -obj $(Z7)
  2322.     $(ADDMOD) psbase -oper $(Z7OPS)
  2323.     $(ADDMOD) psbase -iodev stdin stdout stderr lineedit statementedit
  2324.     $(ADDMOD) psbase -include isupport rld rle sfile
  2325.  
  2326. # -------------------------- Feature definitions -------------------------- #
  2327.  
  2328. # ---------------- Full Level 1 interpreter ---------------- #
  2329.  
  2330. level1.dev: $(INT_MAK) $(ECHOGS_XE) psbase.dev bcp.dev hsb.dev path1.dev type1.dev
  2331.     $(SETMOD) level1 -include psbase bcp hsb path1 type1
  2332.     $(ADDMOD) level1 -emulator PostScript PostScriptLevel1
  2333.  
  2334. # -------- Level 1 color extensions (CMYK color and colorimage) -------- #
  2335.  
  2336. color.dev: $(INT_MAK) $(ECHOGS_XE) cmyklib.dev colimlib.dev cmykread.dev
  2337.     $(SETMOD) color -include cmyklib colimlib cmykread
  2338.  
  2339. cmykread_=zcolor1.$(OBJ) zht1.$(OBJ)
  2340. cmykread.dev: $(INT_MAK) $(ECHOGS_XE) $(cmykread_)
  2341.     $(SETMOD) cmykread $(cmykread_)
  2342.     $(ADDMOD) cmykread -oper zcolor1 zht1
  2343.  
  2344. zcolor1.$(OBJ): zcolor1.c $(OP) \
  2345.   $(gscolor1_h) \
  2346.   $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  2347.   $(gzstate_h) \
  2348.   $(ialloc_h) $(icolor_h) $(iimage_h) $(estack_h) $(iutil_h) $(igstate_h) $(store_h)
  2349.  
  2350. zht1.$(OBJ): zht1.c $(OP) $(memory__h)\
  2351.  $(gsmatrix_h) $(gsstate_h) $(gsstruct_h) $(gxdevice_h) $(gzht_h)\
  2352.  $(ialloc_h) $(estack_h) $(igstate_h) $(iht_h) $(store_h)
  2353.  
  2354. # ---------------- HSB color ---------------- #
  2355.  
  2356. hsb_=zhsb.$(OBJ)
  2357. hsb.dev: $(INT_MAK) $(ECHOGS_XE) $(hsb_) hsblib.dev
  2358.     $(SETMOD) hsb $(hsb_)
  2359.     $(ADDMOD) hsb -include hsblib
  2360.     $(ADDMOD) hsb -oper zhsb
  2361.  
  2362. zhsb.$(OBJ): zhsb.c $(OP) \
  2363.   $(gshsb_h) $(igstate_h) $(store_h)
  2364.  
  2365. # ---- Level 1 path miscellany (arcs, pathbbox, path enumeration) ---- #
  2366.  
  2367. path1_=zpath1.$(OBJ)
  2368. path1.dev: $(INT_MAK) $(ECHOGS_XE) $(path1_) path1lib.dev
  2369.     $(SETMOD) path1 $(path1_)
  2370.     $(ADDMOD) path1 -include path1lib
  2371.     $(ADDMOD) path1 -oper zpath1
  2372.  
  2373. zpath1.$(OBJ): zpath1.c $(OP) $(memory__h)\
  2374.  $(ialloc_h) $(estack_h) $(gspath_h) $(gsstruct_h) $(igstate_h) $(store_h)
  2375.  
  2376. # ================ Level-independent PostScript options ================ #
  2377.  
  2378. # ---------------- BCP filters ---------------- #
  2379.  
  2380. bcp_=sbcp.$(OBJ) zfbcp.$(OBJ)
  2381. bcp.dev: $(INT_MAK) $(ECHOGS_XE) $(bcp_)
  2382.     $(SETMOD) bcp $(bcp_)
  2383.     $(ADDMOD) bcp -oper zfbcp
  2384.  
  2385. sbcp.$(OBJ): sbcp.c $(AK) $(stdio__h) \
  2386.   $(sfilter_h) $(strimpl_h)
  2387.  
  2388. zfbcp.$(OBJ): zfbcp.c $(OP) $(memory__h)\
  2389.  $(gsstruct_h) $(ialloc_h) $(ifilter_h)\
  2390.  $(sfilter_h) $(stream_h) $(strimpl_h)
  2391.  
  2392. # ---------------- Incremental font loading ---------------- #
  2393. # (This only works for Type 1 fonts without eexec encryption.)
  2394.  
  2395. diskfont.dev: $(INT_MAK) $(ECHOGS_XE)
  2396.     $(SETMOD) diskfont -ps gs_diskf
  2397.  
  2398. # ---------------- Double-precision floats ---------------- #
  2399.  
  2400. double_=zdouble.$(OBJ)
  2401. double.dev: $(INT_MAK) $(ECHOGS_XE) $(double_)
  2402.     $(SETMOD) double $(double_)
  2403.     $(ADDMOD) double -oper zdouble
  2404.  
  2405. zdouble.$(OBJ): zdouble.c $(OP) $(ctype__h) $(math__h) $(memory__h) $(string__h) \
  2406.   $(gxfarith_h) $(store_h)
  2407.  
  2408. # ---------------- EPSF files with binary headers ---------------- #
  2409.  
  2410. epsf.dev: $(INT_MAK) $(ECHOGS_XE)
  2411.     $(SETMOD) epsf -ps gs_epsf
  2412.  
  2413. # ---------------- RasterOp ---------------- #
  2414. # This should be a separable feature in the core also....
  2415.  
  2416. rasterop.dev: $(INT_MAK) $(ECHOGS_XE) roplib.dev ropread.dev
  2417.     $(SETMOD) rasterop -include roplib ropread
  2418.  
  2419. ropread_=zrop.$(OBJ)
  2420. ropread.dev: $(INT_MAK) $(ECHOGS_XE) $(ropread_)
  2421.     $(SETMOD) ropread $(ropread_)
  2422.     $(ADDMOD) ropread -oper zrop
  2423.  
  2424. zrop.$(OBJ): zrop.c $(OP) $(memory__h)\
  2425.  $(gsrop_h) $(gsutil_h) $(gxdevice_h)\
  2426.  $(idict_h) $(idparam_h) $(igstate_h) $(store_h)
  2427.  
  2428. # ---------------- PostScript Type 1 (and Type 4) fonts ---------------- #
  2429.  
  2430. type1.dev: $(INT_MAK) $(ECHOGS_XE) psf1lib.dev psf1read.dev
  2431.     $(SETMOD) type1 -include psf1lib psf1read
  2432.  
  2433. psf1read_=seexec.$(OBJ) zchar1.$(OBJ) zcharout.$(OBJ) zfont1.$(OBJ) zmisc1.$(OBJ)
  2434. psf1read.dev: $(INT_MAK) $(ECHOGS_XE) $(psf1read_)
  2435.     $(SETMOD) psf1read $(psf1read_)
  2436.     $(ADDMOD) psf1read -oper zchar1 zfont1 zmisc1
  2437.     $(ADDMOD) psf1read -ps gs_type1
  2438.  
  2439. seexec.$(OBJ): seexec.c $(AK) $(stdio__h) \
  2440.   $(gscrypt1_h) $(scanchar_h) $(sfilter_h) $(strimpl_h)
  2441.  
  2442. zchar1.$(OBJ): zchar1.c $(OP) \
  2443.   $(gspaint_h) $(gspath_h) $(gsstruct_h) \
  2444.   $(gxchar_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  2445.   $(gxfont_h) $(gxfont1_h) $(gxtype1_h) $(gzstate_h) \
  2446.   $(estack_h) $(ialloc_h) $(ichar_h) $(icharout_h) \
  2447.   $(idict_h) $(ifont_h) $(igstate_h) $(store_h)
  2448.  
  2449. zfont1.$(OBJ): zfont1.c $(OP) \
  2450.   $(gsmatrix_h) $(gxdevice_h) $(gschar_h) \
  2451.   $(gxfixed_h) $(gxfont_h) $(gxfont1_h) \
  2452.   $(bfont_h) $(ialloc_h) $(idict_h) $(idparam_h) $(store_h)
  2453.  
  2454. zmisc1.$(OBJ): zmisc1.c $(OP) $(memory__h)\
  2455.  $(gscrypt1_h)\
  2456.  $(idict_h) $(idparam_h) $(ifilter_h)\
  2457.  $(sfilter_h) $(stream_h) $(strimpl_h)
  2458.  
  2459. # -------------- Compact Font Format and Type 2 charstrings ------------- #
  2460.  
  2461. cff.dev: $(INT_MAK) $(ECHOGS_XE) gs_cff.ps psl2int.dev
  2462.     $(SETMOD) cff -ps gs_cff
  2463.  
  2464. type2.dev: $(INT_MAK) $(ECHOGS_XE) type1.dev psf2lib.dev
  2465.     $(SETMOD) type2 -include psf2lib
  2466.  
  2467. # ---------------- TrueType and PostScript Type 42 fonts ---------------- #
  2468.  
  2469. # Native TrueType support
  2470. ttfont.dev: $(INT_MAK) $(ECHOGS_XE) type42.dev
  2471.     $(SETMOD) ttfont -include type42
  2472.     $(ADDMOD) ttfont -ps gs_mro_e gs_wan_e gs_ttf
  2473.  
  2474. # Type 42 (embedded TrueType) support
  2475. type42read_=zchar42.$(OBJ) zcharout.$(OBJ) zfont42.$(OBJ)
  2476. type42.dev: $(INT_MAK) $(ECHOGS_XE) $(type42read_) ttflib.dev
  2477.     $(SETMOD) type42 $(type42read_)
  2478.     $(ADDMOD) type42 -include ttflib    
  2479.     $(ADDMOD) type42 -oper zchar42 zfont42
  2480.     $(ADDMOD) type42 -ps gs_typ42
  2481.  
  2482. zchar42.$(OBJ): zchar42.c $(OP) \
  2483.   $(gsmatrix_h) $(gspaint_h) $(gspath_h) \
  2484.   $(gxfixed_h) $(gxchar_h) $(gxfont_h) $(gxfont42_h) \
  2485.   $(gxistate_h) $(gxpath_h) $(gzstate_h) \
  2486.   $(dstack_h) $(estack_h) $(ichar_h) $(icharout_h) \
  2487.   $(ifont_h) $(igstate_h) $(store_h)
  2488.  
  2489. zfont42.$(OBJ): zfont42.c $(OP) \
  2490.   $(gsccode_h) $(gsmatrix_h) $(gxfont_h) $(gxfont42_h) \
  2491.   $(bfont_h) $(idict_h) $(idparam_h) $(store_h)
  2492.  
  2493. # ======================== Precompilation options ======================== #
  2494.  
  2495. # ---------------- Precompiled fonts ---------------- #
  2496. # See fonts.txt for more information.
  2497.  
  2498. ccfont_h=ccfont.h $(std_h) $(gsmemory_h) $(iref_h) $(ivmspace_h) $(store_h)
  2499.  
  2500. CCFONT=$(OP) $(ccfont_h)
  2501.  
  2502. # List the fonts we are going to compile.
  2503. # Because of intrinsic limitations in `make', we have to list
  2504. # the object file names and the font names separately.
  2505. # Because of limitations in the DOS shell, we have to break the fonts up
  2506. # into lists that will fit on a single line (120 characters).
  2507. # The rules for constructing the .c files from the fonts themselves,
  2508. # and for compiling the .c files, are in cfonts.mak, not here.
  2509. # For example, to compile the Courier fonts, you should invoke
  2510. #    make -f cfonts.mak Courier_o
  2511. # By convention, the names of the 35 standard compiled fonts use '0' for
  2512. # the foundry name.  This allows users to substitute different foundries
  2513. # without having to change this makefile.
  2514. ccfonts_ps=gs_ccfnt
  2515. ccfonts1_=0agk.$(OBJ) 0agko.$(OBJ) 0agd.$(OBJ) 0agdo.$(OBJ)
  2516. ccfonts1=agk agko agd agdo
  2517. ccfonts2_=0bkl.$(OBJ) 0bkli.$(OBJ) 0bkd.$(OBJ) 0bkdi.$(OBJ)
  2518. ccfonts2=bkl bkli bkd bkdi
  2519. ccfonts3_=0crr.$(OBJ) 0cri.$(OBJ) 0crb.$(OBJ) 0crbi.$(OBJ)
  2520. ccfonts3=crr cri crb crbi
  2521. ccfonts4_=0hvr.$(OBJ) 0hvro.$(OBJ) 0hvb.$(OBJ) 0hvbo.$(OBJ)
  2522. ccfonts4=hvr hvro hvb hvbo
  2523. ccfonts5_=0hvrrn.$(OBJ) 0hvrorn.$(OBJ) 0hvbrn.$(OBJ) 0hvborn.$(OBJ)
  2524. ccfonts5=hvrrn hvrorn hvbrn hvborn
  2525. ccfonts6_=0ncr.$(OBJ) 0ncri.$(OBJ) 0ncb.$(OBJ) 0ncbi.$(OBJ)
  2526. ccfonts6=ncr ncri ncb ncbi
  2527. ccfonts7_=0plr.$(OBJ) 0plri.$(OBJ) 0plb.$(OBJ) 0plbi.$(OBJ)
  2528. ccfonts7=plr plri plb plbi
  2529. ccfonts8_=0tmr.$(OBJ) 0tmri.$(OBJ) 0tmb.$(OBJ) 0tmbi.$(OBJ)
  2530. ccfonts8=tmr tmri tmb tmbi
  2531. ccfonts9_=0syr.$(OBJ) 0zcmi.$(OBJ) 0zdr.$(OBJ)
  2532. ccfonts9=syr zcmi zdr
  2533. # The free distribution includes Bitstream Charter, Utopia, and
  2534. # freeware Cyrillic and Kana fonts.  We only provide for compiling
  2535. # Charter and Utopia.
  2536. ccfonts10free_=bchr.$(OBJ) bchri.$(OBJ) bchb.$(OBJ) bchbi.$(OBJ)
  2537. ccfonts10free=chr chri chb chbi
  2538. ccfonts11free_=putr.$(OBJ) putri.$(OBJ) putb.$(OBJ) putbi.$(OBJ)
  2539. ccfonts11free=utr utri utb utbi
  2540. # Uncomment the alternatives in the next 4 lines if you want
  2541. # Charter and Utopia compiled in.
  2542. #ccfonts10_=$(ccfonts10free_)
  2543. ccfonts10_=
  2544. #ccfonts10=$(ccfonts10free)
  2545. ccfonts10=
  2546. #ccfonts11_=$(ccfonts11free_)
  2547. ccfonts11_=
  2548. #ccfonts11=$(ccfonts11free)
  2549. ccfonts11=
  2550. # Add your own fonts here if desired.
  2551. ccfonts12_=
  2552. ccfonts12=
  2553. ccfonts13_=
  2554. ccfonts13=
  2555. ccfonts14_=
  2556. ccfonts14=
  2557. ccfonts15_=
  2558. ccfonts15=
  2559.  
  2560. # It's OK for ccfonts_.dev not to be CONFIG-dependent, because it only
  2561. # exists during the execution of the following rule.
  2562. # font2c has the prefix "gs" built into it, so we need to instruct
  2563. # genconf to use the same one.
  2564. $(gconfigf_h): $(MAKEFILE) $(INT_MAK) $(GENCONF_XE)
  2565.     $(SETMOD) ccfonts_ -font $(ccfonts1)
  2566.     $(ADDMOD) ccfonts_ -font $(ccfonts2)
  2567.     $(ADDMOD) ccfonts_ -font $(ccfonts3)
  2568.     $(ADDMOD) ccfonts_ -font $(ccfonts4)
  2569.     $(ADDMOD) ccfonts_ -font $(ccfonts5)
  2570.     $(ADDMOD) ccfonts_ -font $(ccfonts6)
  2571.     $(ADDMOD) ccfonts_ -font $(ccfonts7)
  2572.     $(ADDMOD) ccfonts_ -font $(ccfonts8)
  2573.     $(ADDMOD) ccfonts_ -font $(ccfonts9)
  2574.     $(ADDMOD) ccfonts_ -font $(ccfonts10)
  2575.     $(ADDMOD) ccfonts_ -font $(ccfonts11)
  2576.     $(ADDMOD) ccfonts_ -font $(ccfonts12)
  2577.     $(ADDMOD) ccfonts_ -font $(ccfonts13)
  2578.     $(ADDMOD) ccfonts_ -font $(ccfonts14)
  2579.     $(ADDMOD) ccfonts_ -font $(ccfonts15)
  2580.     $(EXP)genconf ccfonts_.dev -n gs -f $(gconfigf_h)
  2581.  
  2582. # We separate icfontab.dev from ccfonts.dev so that a customer can put
  2583. # compiled fonts into a separate shared library.
  2584.  
  2585. icfontab=icfontab$(CONFIG)
  2586.  
  2587. # Define ccfont_table separately, so it can be set from the command line
  2588. # to select an alternate compiled font table.
  2589. ccfont_table=$(icfontab)
  2590.  
  2591. $(icfontab).dev: $(MAKEFILE) $(INT_MAK) $(ECHOGS_XE) $(icfontab).$(OBJ) \
  2592.   $(ccfonts1_) $(ccfonts2_) $(ccfonts3_) $(ccfonts4_) $(ccfonts5_) \
  2593.   $(ccfonts6_) $(ccfonts7_) $(ccfonts8_) $(ccfonts9_) $(ccfonts10_) \
  2594.   $(ccfonts11_) $(ccfonts12_) $(ccfonts13_) $(ccfonts14_) $(ccfonts15_)
  2595.     $(SETMOD) $(icfontab) -obj $(icfontab).$(OBJ)
  2596.     $(ADDMOD) $(icfontab) -obj $(ccfonts1_)
  2597.     $(ADDMOD) $(icfontab) -obj $(ccfonts2_)
  2598.     $(ADDMOD) $(icfontab) -obj $(ccfonts3_)
  2599.     $(ADDMOD) $(icfontab) -obj $(ccfonts4_)
  2600.     $(ADDMOD) $(icfontab) -obj $(ccfonts5_)
  2601.     $(ADDMOD) $(icfontab) -obj $(ccfonts6_)
  2602.     $(ADDMOD) $(icfontab) -obj $(ccfonts7_)
  2603.     $(ADDMOD) $(icfontab) -obj $(ccfonts8_)
  2604.     $(ADDMOD) $(icfontab) -obj $(ccfonts9_)
  2605.     $(ADDMOD) $(icfontab) -obj $(ccfonts10_)
  2606.     $(ADDMOD) $(icfontab) -obj $(ccfonts11_)
  2607.     $(ADDMOD) $(icfontab) -obj $(ccfonts12_)
  2608.     $(ADDMOD) $(icfontab) -obj $(ccfonts13_)
  2609.     $(ADDMOD) $(icfontab) -obj $(ccfonts14_)
  2610.     $(ADDMOD) $(icfontab) -obj $(ccfonts15_)
  2611.  
  2612. $(icfontab).$(OBJ): icfontab.c $(AK) $(ccfont_h) $(gconfigf_h)
  2613.     $(CP_) $(gconfigf_h) gconfigf.h
  2614.     $(CCCF) icfontab.c
  2615.  
  2616. # Strictly speaking, ccfonts shouldn't need to include type1,
  2617. # since one could choose to precompile only Type 0 fonts,
  2618. # but getting this exactly right would be too much work.
  2619. ccfonts=ccfonts$(CONFIG)
  2620. $(ccfonts).dev: $(MAKEFILE) $(INT_MAK) type1.dev iccfont.$(OBJ) \
  2621.   $(ccfont_table).dev
  2622.     $(SETMOD) $(ccfonts) -include type1
  2623.     $(ADDMOD) $(ccfonts) -include $(ccfont_table)
  2624.     $(ADDMOD) $(ccfonts) -obj iccfont.$(OBJ)
  2625.     $(ADDMOD) $(ccfonts) -oper ccfonts
  2626.     $(ADDMOD) $(ccfonts) -ps $(ccfonts_ps)
  2627.  
  2628. iccfont.$(OBJ): iccfont.c $(GH) $(string__h)\
  2629.  $(gsstruct_h) $(ccfont_h) $(errors_h)\
  2630.  $(ialloc_h) $(idict_h) $(ifont_h) $(iname_h) $(isave_h) $(iutil_h)\
  2631.  $(oper_h) $(ostack_h) $(store_h) $(stream_h) $(strimpl_h) $(sfilter_h) $(iscan_h)
  2632.     $(CCCF) iccfont.c
  2633.  
  2634. # ---------------- Compiled initialization code ---------------- #
  2635.  
  2636. # We select either iccinit0 or iccinit1 depending on COMPILE_INITS.
  2637.  
  2638. iccinit0.$(OBJ): iccinit0.c $(stdpre_h)
  2639.     $(CCCF) iccinit0.c
  2640.  
  2641. iccinit1.$(OBJ): gs_init.$(OBJ)
  2642.     $(CP_) gs_init.$(OBJ) iccinit1.$(OBJ)
  2643.  
  2644. # All the gs_*.ps files should be prerequisites of gs_init.c,
  2645. # but we don't have any convenient list of them.
  2646. gs_init.c: $(GS_INIT) $(GENINIT_XE) $(gconfig_h)
  2647.     $(EXP)geninit $(GS_INIT) $(gconfig_h) -c gs_init.c
  2648.  
  2649. gs_init.$(OBJ): gs_init.c $(stdpre_h)
  2650.     $(CCCF) gs_init.c
  2651.  
  2652. # ======================== PostScript Level 2 ======================== #
  2653.  
  2654. ### In addition to the true Level 2 configuration, we define a 'minimal'
  2655. ### Level 2 that can be used with -dDEBUG in the 16-bit Windows environment.
  2656. ### This also may require trimming down the sizes of the stacks in interp.c.
  2657.  
  2658. lev2min.dev: $(INT_MAK) $(ECHOGS_XE) \
  2659.   psbase.dev devctrl.dev color.dev \
  2660.   dps2lib.dev dps2read.dev fdecode.dev path1.dev type1.dev \
  2661.   psl2lib.dev psl2read.dev
  2662.     $(SETMOD) lev2min -include psbase devctrl color
  2663.     $(ADDMOD) lev2min -include dps2lib dps2read fdecode path1 type1
  2664.     $(ADDMOD) lev2min -include psl2lib psl2read
  2665.     $(ADDMOD) lev2min -emulator PostScript PostScriptLevel1 PostScriptLevel2
  2666.  
  2667. level2.dev: $(INT_MAK) $(ECHOGS_XE) \
  2668.  cidfont.dev cie.dev cmapread.dev compfont.dev dct.dev devctrl.dev dpsand2.dev\
  2669.  filter.dev level1.dev pattern.dev psl2lib.dev psl2read.dev sepr.dev\
  2670.  type42.dev xfilter.dev
  2671.     $(SETMOD) level2 -include cidfont cie cmapread compfont
  2672.     $(ADDMOD) level2 -include dct devctrl dpsand2 filter
  2673.     $(ADDMOD) level2 -include level1 pattern psl2lib psl2read
  2674.     $(ADDMOD) level2 -include sepr type42 xfilter
  2675.     $(ADDMOD) level2 -emulator PostScript PostScriptLevel2
  2676.  
  2677. # Define basic Level 2 language support.
  2678. # This is the minimum required for CMap and CIDFont support.
  2679.  
  2680. psl2int_=iutil2.$(OBJ) zmisc2.$(OBJ) zusparam.$(OBJ)
  2681. psl2int.dev: $(INT_MAK) $(ECHOGS_XE) $(psl2int_) dps2int.dev
  2682.     $(SETMOD) psl2int $(psl2int_)
  2683.     $(ADDMOD) psl2int -include dps2int
  2684.     $(ADDMOD) psl2int -oper zmisc2 zusparam
  2685.     $(ADDMOD) psl2int -ps gs_lev2 gs_res
  2686.  
  2687. iutil2.$(OBJ): iutil2.c $(GH) $(memory__h) $(string__h)\
  2688.  $(gsparam_h) $(gsutil_h)\
  2689.  $(errors_h) $(opcheck_h) $(imemory_h) $(iutil_h) $(iutil2_h)
  2690.  
  2691. zmisc2.$(OBJ): zmisc2.c $(OP) $(memory__h) $(string__h)\
  2692.  $(idict_h) $(idparam_h) $(iparam_h) $(dstack_h) $(estack_h)\
  2693.  $(ilevel_h) $(iname_h) $(iutil2_h) $(ivmspace_h) $(store_h)
  2694.  
  2695. # Note that zusparam includes both Level 1 and Level 2 operators.
  2696. zusparam.$(OBJ): zusparam.c $(OP) $(memory__h) $(string__h)\
  2697.  $(gscdefs_h) $(gsfont_h) $(gsstruct_h) $(gsutil_h) $(gxht_h)\
  2698.  $(ialloc_h) $(idict_h) $(idparam_h) $(iparam_h) $(dstack_h) $(estack_h)\
  2699.  $(iname_h) $(iutil2_h) $(store_h)
  2700.  
  2701. # Define full Level 2 support.
  2702.  
  2703. psl2read_=zcolor2.$(OBJ) zcsindex.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ)
  2704. # Note that zmisc2 includes both Level 1 and Level 2 operators.
  2705. psl2read.dev: $(INT_MAK) $(ECHOGS_XE) $(psl2read_) psl2int.dev dps2read.dev
  2706.     $(SETMOD) psl2read $(psl2read_)
  2707.     $(ADDMOD) psl2read -include psl2int dps2read
  2708.     $(ADDMOD) psl2read -oper zcolor2_l2 zcsindex_l2
  2709.     $(ADDMOD) psl2read -oper zht2_l2 zimage2_l2
  2710.  
  2711. zcolor2.$(OBJ): zcolor2.c $(OP)\
  2712.  $(gscolor_h) $(gsmatrix_h) $(gsstruct_h)\
  2713.  $(gxcolor2_h) $(gxcspace_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) $(gxfixed_h) $(gxpcolor_h)\
  2714.  $(estack_h) $(ialloc_h) $(idict_h) $(idparam_h) $(igstate_h) $(istruct_h)\
  2715.  $(store_h)
  2716.  
  2717. zcsindex.$(OBJ): zcsindex.c $(OP) $(memory__h) \
  2718.   $(gscolor_h) $(gsstruct_h) $(gxfixed_h) $(gxcolor2_h) $(gxcspace_h) $(gsmatrix_h) \
  2719.   $(ialloc_h) $(icsmap_h) $(estack_h) $(igstate_h) $(ivmspace_h) $(store_h)
  2720.  
  2721. zht2.$(OBJ): zht2.c $(OP) \
  2722.   $(gsstruct_h) $(gxdevice_h) $(gzht_h) \
  2723.   $(estack_h) $(ialloc_h) $(icolor_h) $(idict_h) $(idparam_h) $(igstate_h) \
  2724.   $(iht_h) $(store_h)
  2725.  
  2726. zimage2.$(OBJ): zimage2.c $(OP) $(math__h) $(memory__h)\
  2727.  $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsimage_h) $(gsmatrix_h)\
  2728.  $(idict_h) $(idparam_h) $(iimage_h) $(ilevel_h) $(igstate_h)
  2729.  
  2730. # ---------------- Device control ---------------- #
  2731. # This is a catch-all for setpagedevice and IODevices.
  2732.  
  2733. devctrl_=zdevice2.$(OBJ) ziodev2.$(OBJ) zmedia2.$(OBJ) zdevcal.$(OBJ)
  2734. devctrl.dev: $(INT_MAK) $(ECHOGS_XE) $(devctrl_)
  2735.     $(SETMOD) devctrl $(devctrl_)
  2736.     $(ADDMOD) devctrl -oper zdevice2_l2 ziodev2_l2 zmedia2_l2
  2737.     $(ADDMOD) devctrl -iodev null ram calendar
  2738.     $(ADDMOD) devctrl -ps gs_setpd
  2739.  
  2740. zdevice2.$(OBJ): zdevice2.c $(OP) $(math__h) $(memory__h)\
  2741.  $(dstack_h) $(estack_h) $(idict_h) $(idparam_h) $(igstate_h) $(iname_h) $(store_h)\
  2742.  $(gxdevice_h) $(gsstate_h)
  2743.  
  2744. ziodev2.$(OBJ): ziodev2.c $(OP) $(string__h) $(gp_h)\
  2745.  $(gxiodev_h) $(stream_h) $(files_h) $(iparam_h) $(iutil2_h) $(store_h)
  2746.  
  2747. zmedia2.$(OBJ): zmedia2.c $(OP) $(math__h) $(memory__h) \
  2748.   $(gsmatrix_h) $(idict_h) $(idparam_h) $(iname_h) $(store_h)
  2749.  
  2750. zdevcal.$(OBJ): zdevcal.c $(GH) $(time__h) \
  2751.   $(gxiodev_h) $(iparam_h) $(istack_h)
  2752.  
  2753. # ---------------- Filters other than the ones in sfilter.c ---------------- #
  2754.  
  2755. # Standard Level 2 decoding filters only.  The PDF configuration uses this.
  2756. fdecode_=scantab.$(OBJ) sfilter2.$(OBJ) zfdecode.$(OBJ)
  2757. fdecode.dev: $(INT_MAK) $(ECHOGS_XE) $(fdecode_) cfd.dev lzwd.dev pdiff.dev pngp.dev rld.dev
  2758.     $(SETMOD) fdecode $(fdecode_)
  2759.     $(ADDMOD) fdecode -include cfd lzwd pdiff pngp rld
  2760.     $(ADDMOD) fdecode -oper zfdecode
  2761.  
  2762. zfdecode.$(OBJ): zfdecode.c $(OP) $(memory__h)\
  2763.  $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) \
  2764.  $(sa85x_h) $(scf_h) $(scfx_h) $(sfilter_h) $(slzwx_h) $(spdiffx_h) $(spngpx_h) \
  2765.  $(store_h) $(stream_h) $(strimpl_h)
  2766.  
  2767. # Complete Level 2 filter capability.
  2768. filter_=zfilter2.$(OBJ)
  2769. filter.dev: $(INT_MAK) $(ECHOGS_XE) fdecode.dev $(filter_) cfe.dev lzwe.dev rle.dev
  2770.     $(SETMOD) filter -include fdecode
  2771.     $(ADDMOD) filter -obj $(filter_)
  2772.     $(ADDMOD) filter -include cfe lzwe rle
  2773.     $(ADDMOD) filter -oper zfilter2
  2774.  
  2775. zfilter2.$(OBJ): zfilter2.c $(OP) $(memory__h)\
  2776.   $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) $(store_h) \
  2777.   $(sfilter_h) $(scfx_h) $(slzwx_h) $(spdiffx_h) $(spngpx_h) $(strimpl_h)
  2778.  
  2779. # Extensions beyond Level 2 standard.
  2780. xfilter_=sbhc.$(OBJ) sbwbs.$(OBJ) shcgen.$(OBJ) smtf.$(OBJ) \
  2781.  zfilterx.$(OBJ)
  2782. xfilter.dev: $(INT_MAK) $(ECHOGS_XE) $(xfilter_) pcxd.dev pngp.dev
  2783.     $(SETMOD) xfilter $(xfilter_)
  2784.     $(ADDMOD) xfilter -include pcxd
  2785.     $(ADDMOD) xfilter -oper zfilterx
  2786.  
  2787. sbhc.$(OBJ): sbhc.c $(AK) $(memory__h) $(stdio__h)\
  2788.  $(gdebug_h) $(sbhc_h) $(shcgen_h) $(strimpl_h)
  2789.  
  2790. sbwbs.$(OBJ): sbwbs.c $(AK) $(stdio__h) $(memory__h) \
  2791.   $(gdebug_h) $(sbwbs_h) $(sfilter_h) $(strimpl_h)
  2792.  
  2793. shcgen.$(OBJ): shcgen.c $(AK) $(memory__h) $(stdio__h)\
  2794.  $(gdebug_h) $(gserror_h) $(gserrors_h) $(gsmemory_h)\
  2795.  $(scommon_h) $(shc_h) $(shcgen_h)
  2796.  
  2797. smtf.$(OBJ): smtf.c $(AK) $(stdio__h) \
  2798.   $(smtf_h) $(strimpl_h)
  2799.  
  2800. zfilterx.$(OBJ): zfilterx.c $(OP) $(memory__h)\
  2801.  $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h)\
  2802.  $(store_h) $(sfilter_h) $(sbhc_h) $(sbtx_h) $(sbwbs_h) $(shcgen_h)\
  2803.  $(smtf_h) $(spcxx_h) $(strimpl_h)
  2804.  
  2805. # ---------------- Binary tokens ---------------- #
  2806.  
  2807. btoken_=iscanbin.$(OBJ) zbseq.$(OBJ)
  2808. btoken.dev: $(INT_MAK) $(ECHOGS_XE) $(btoken_)
  2809.     $(SETMOD) btoken $(btoken_)
  2810.     $(ADDMOD) btoken -oper zbseq_l2
  2811.     $(ADDMOD) btoken -ps gs_btokn
  2812.  
  2813. bseq_h=bseq.h
  2814. btoken_h=btoken.h
  2815.  
  2816. iscanbin.$(OBJ): iscanbin.c $(GH) $(math__h) $(memory__h) $(errors_h)\
  2817.  $(gsutil_h) $(ialloc_h) $(ibnum_h) $(idict_h) $(iname_h)\
  2818.  $(iscan_h) $(iutil_h) $(ivmspace_h)\
  2819.  $(bseq_h) $(btoken_h) $(dstack_h) $(ostack_h)\
  2820.  $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  2821.  
  2822. zbseq.$(OBJ): zbseq.c $(OP) $(memory__h)\
  2823.  $(ialloc_h) $(idict_h) $(isave_h)\
  2824.  $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)\
  2825.  $(iname_h) $(ibnum_h) $(btoken_h) $(bseq_h)
  2826.  
  2827. # ---------------- User paths & insideness testing ---------------- #
  2828.  
  2829. upath_=zupath.$(OBJ) ibnum.$(OBJ)
  2830. upath.dev: $(INT_MAK) $(ECHOGS_XE) $(upath_)
  2831.     $(SETMOD) upath $(upath_)
  2832.     $(ADDMOD) upath -oper zupath_l2
  2833.  
  2834. zupath.$(OBJ): zupath.c $(OP) \
  2835.   $(idict_h) $(dstack_h) $(iutil_h) $(igstate_h) $(store_h) $(stream_h) $(ibnum_h) \
  2836.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  2837.   $(gxfixed_h) $(gxdevice_h) $(gzpath_h) $(gzstate_h)
  2838.  
  2839. # -------- Additions common to Display PostScript and Level 2 -------- #
  2840.  
  2841. dpsand2.dev: $(INT_MAK) $(ECHOGS_XE) btoken.dev color.dev upath.dev dps2lib.dev dps2read.dev
  2842.     $(SETMOD) dpsand2 -include btoken color upath dps2lib dps2read
  2843.  
  2844. dps2int_=zvmem2.$(OBJ) zdps1.$(OBJ)
  2845. # Note that zvmem2 includes both Level 1 and Level 2 operators.
  2846. dps2int.dev: $(INT_MAK) $(ECHOGS_XE) $(dps2int_)
  2847.     $(SETMOD) dps2int $(dps2int_)
  2848.     $(ADDMOD) dps2int -oper zvmem2 zdps1_l2
  2849.     $(ADDMOD) dps2int -ps gs_dps1
  2850.  
  2851. dps2read_=ibnum.$(OBJ) zchar2.$(OBJ)
  2852. dps2read.dev: $(INT_MAK) $(ECHOGS_XE) $(dps2read_) dps2int.dev
  2853.     $(SETMOD) dps2read $(dps2read_)
  2854.     $(ADDMOD) dps2read -include dps2int
  2855.     $(ADDMOD) dps2read -oper ireclaim_l2 zchar2_l2
  2856.     $(ADDMOD) dps2read -ps gs_dps2
  2857.  
  2858. ibnum.$(OBJ): ibnum.c $(GH) $(math__h) $(memory__h)\
  2859.  $(errors_h) $(stream_h) $(ibnum_h) $(imemory_h) $(iutil_h)
  2860.  
  2861. zchar2.$(OBJ): zchar2.c $(OP) \
  2862.   $(gschar_h) $(gsmatrix_h) $(gspath_h) $(gsstruct_h) $(gxfixed_h) $(gxfont_h) \
  2863.   $(ialloc_h) $(ichar_h) $(estack_h) $(ifont_h) $(iname_h) $(igstate_h) \
  2864.   $(store_h) $(stream_h) $(ibnum_h)
  2865.  
  2866. zdps1.$(OBJ): zdps1.c $(OP) \
  2867.   $(gsmatrix_h) $(gspath_h) $(gspath2_h) $(gsstate_h) \
  2868.   $(ialloc_h) $(ivmspace_h) $(igstate_h) $(store_h) $(stream_h) $(ibnum_h)
  2869.  
  2870. zvmem2.$(OBJ): zvmem2.c $(OP) \
  2871.   $(estack_h) $(ialloc_h) $(ivmspace_h) $(store_h)
  2872.  
  2873. # ---------------- Display PostScript ---------------- #
  2874.  
  2875. # The context machinery is NOT USABLE in this release.  DO NOT USE IT.
  2876. # IT WILL CAUSE AN IMMEDIATE CRASH.
  2877. #dps_=zdps.$(OBJ) zcontext.$(OBJ)
  2878. dps_=zdps.$(OBJ)
  2879. # Note that zcontext is omitted from the -oper list below.
  2880. dps.dev: $(INT_MAK) $(ECHOGS_XE) level2.dev $(dps_)
  2881.     $(SETMOD) dps -include level2
  2882.     $(ADDMOD) dps -obj $(dps_)
  2883.     $(ADDMOD) dps -oper zdps
  2884.     $(ADDMOD) dps -ps gs_dps
  2885.  
  2886. zdps.$(OBJ): zdps.c $(OP)\
  2887.  $(gsstate_h) $(igstate_h) $(iname_h) $(store_h)
  2888.  
  2889. zcontext.$(OBJ): zcontext.c $(OP) $(gp_h) $(memory__h)\
  2890.  $(gsexit_h) $(gsstruct_h) $(gsutil_h) $(gxalloc_h)\
  2891.  $(icontext_h) $(idict_h) $(igstate_h) $(istruct_h)\
  2892.  $(dstack_h) $(estack_h) $(ostack_h) $(store_h)
  2893.  
  2894. # ---------------- NeXT Display PostScript ---------------- #
  2895. #**************** NOT READY FOR USE YET ****************#
  2896.  
  2897. dpsnext_=zdpnext.$(OBJ)
  2898. dpsnext.dev: $(INT_MAK) $(ECHOGS_XE) dps.dev $(dpsnext_) gs_dpnxt.ps
  2899.     $(SETMOD) dpsnext -include dps
  2900.     $(ADDMOD) dpsnext -obj $(dpsnext_)
  2901.     $(ADDMOD) dpsnext -oper zdpnext
  2902.     $(ADDMOD) dpsnext -ps gs_dpnxt
  2903.  
  2904. zdpnext.$(OBJ): zdpnext.c $(OP)\
  2905.  $(gscspace_h) $(gsiparam_h) $(gsmatrix_h) $(gxcvalue_h) $(gxsample_h)\
  2906.  $(ialloc_h) $(igstate_h) $(iimage_h)
  2907.  
  2908. # -------- Composite (PostScript Type 0) font support -------- #
  2909.  
  2910. compfont.dev: $(INT_MAK) $(ECHOGS_XE) psf0lib.dev psf0read.dev
  2911.     $(SETMOD) compfont -include psf0lib psf0read
  2912.  
  2913. # We always include zfcmap.$(OBJ) because zfont0.c refers to it,
  2914. # and it's not worth the trouble to exclude.
  2915. psf0read_=zchar2.$(OBJ) zfcmap.$(OBJ) zfont0.$(OBJ)
  2916. psf0read.dev: $(INT_MAK) $(ECHOGS_XE) $(psf0read_)
  2917.     $(SETMOD) psf0read $(psf0read_)
  2918.     $(ADDMOD) psf0read -oper zfont0 zchar2 zfcmap
  2919.  
  2920. zfcmap.$(OBJ): zfcmap.c $(OP)\
  2921.  $(gsmatrix_h) $(gsstruct_h) $(gsutil_h)\
  2922.  $(gxfcmap_h) $(gxfont_h)\
  2923.  $(ialloc_h) $(idict_h) $(idparam_h) $(ifont_h) $(iname_h) $(store_h)
  2924.  
  2925. zfont0.$(OBJ): zfont0.c $(OP)\
  2926.  $(gschar_h) $(gsstruct_h)\
  2927.  $(gxdevice_h) $(gxfcmap_h) $(gxfixed_h) $(gxfont_h) $(gxfont0_h) $(gxmatrix_h)\
  2928.  $(gzstate_h)\
  2929.  $(bfont_h) $(ialloc_h) $(idict_h) $(idparam_h) $(igstate_h) $(iname_h)\
  2930.  $(store_h)
  2931.  
  2932. # ---------------- CMap support ---------------- #
  2933. # Note that this requires at least minimal Level 2 support,
  2934. # because it requires findresource.
  2935.  
  2936. cmapread_=zfcmap.$(OBJ)
  2937. cmapread.dev: $(INT_MAK) $(ECHOGS_XE) $(cmapread_) cmaplib.dev psl2int.dev
  2938.     $(SETMOD) cmapread $(cmapread_)
  2939.     $(ADDMOD) cmapread -include cmaplib psl2int
  2940.     $(ADDMOD) cmapread -oper zfcmap
  2941.     $(ADDMOD) cmapread -ps gs_cmap
  2942.  
  2943. # ---------------- CIDFont support ---------------- #
  2944. # Note that this requires at least minimal Level 2 support,
  2945. # because it requires findresource.
  2946.  
  2947. cidread_=zcid.$(OBJ)
  2948. cidfont.dev: $(INT_MAK) $(ECHOGS_XE) psf1read.dev psl2int.dev type42.dev\
  2949.  $(cidread_)
  2950.     $(SETMOD) cidfont $(cidread_)
  2951.     $(ADDMOD) cidfont -include psf1read psl2int type42
  2952.     $(ADDMOD) cidfont -ps gs_cidfn
  2953.     $(ADDMOD) cidfont -oper zcid
  2954.  
  2955. zcid.$(OBJ): zcid.c $(OP)\
  2956.  $(gsccode_h) $(gsmatrix_h) $(gxfont_h)\
  2957.  $(bfont_h) $(iname_h) $(store_h)
  2958.  
  2959. # ---------------- CIE color ---------------- #
  2960.  
  2961. cieread_=zcie.$(OBJ) zcrd.$(OBJ)
  2962. cie.dev: $(INT_MAK) $(ECHOGS_XE) $(cieread_) cielib.dev
  2963.     $(SETMOD) cie $(cieread_)
  2964.     $(ADDMOD) cie -oper zcie_l2 zcrd_l2
  2965.     $(ADDMOD) cie -include cielib
  2966.  
  2967. icie_h=icie.h
  2968.  
  2969. zcie.$(OBJ): zcie.c $(OP) $(math__h) $(memory__h) \
  2970.   $(gscolor2_h) $(gscie_h) $(gsstruct_h) $(gxcspace_h) \
  2971.   $(ialloc_h) $(icie_h) $(idict_h) $(idparam_h) $(estack_h) \
  2972.   $(isave_h) $(igstate_h) $(ivmspace_h) $(store_h)
  2973.  
  2974. zcrd.$(OBJ): zcrd.c $(OP) $(math__h) \
  2975.   $(gscspace_h) $(gscolor2_h) $(gscie_h) $(gsstruct_h) \
  2976.   $(ialloc_h) $(icie_h) $(idict_h) $(idparam_h) $(estack_h) \
  2977.   $(isave_h) $(igstate_h) $(ivmspace_h) $(store_h)
  2978.  
  2979. # ---------------- Pattern color ---------------- #
  2980.  
  2981. pattern.dev: $(INT_MAK) $(ECHOGS_XE) patlib.dev patread.dev
  2982.     $(SETMOD) pattern -include patlib patread
  2983.  
  2984. patread_=zpcolor.$(OBJ)
  2985. patread.dev: $(INT_MAK) $(ECHOGS_XE) $(patread_)
  2986.     $(SETMOD) patread $(patread_)
  2987.     $(ADDMOD) patread -oper zpcolor_l2
  2988.  
  2989. zpcolor.$(OBJ): zpcolor.c $(OP)\
  2990.  $(gscolor_h) $(gsmatrix_h) $(gsstruct_h)\
  2991.  $(gxcolor2_h) $(gxcspace_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h)\
  2992.    $(gxfixed_h) $(gxpcolor_h)\
  2993.  $(estack_h) $(ialloc_h) $(idict_h) $(idparam_h) $(igstate_h) $(istruct_h)\
  2994.  $(store_h)
  2995.  
  2996. # ---------------- Separation color ---------------- #
  2997.  
  2998. seprread_=zcssepr.$(OBJ)
  2999. sepr.dev: $(INT_MAK) $(ECHOGS_XE) $(seprread_) seprlib.dev
  3000.     $(SETMOD) sepr $(seprread_)
  3001.     $(ADDMOD) sepr -oper zcssepr_l2
  3002.     $(ADDMOD) sepr -include seprlib
  3003.  
  3004. zcssepr.$(OBJ): zcssepr.c $(OP) \
  3005.   $(gscolor_h) $(gscsepr_h) $(gsmatrix_h) $(gsstruct_h) \
  3006.   $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h) \
  3007.   $(ialloc_h) $(icsmap_h) $(estack_h) $(igstate_h) $(ivmspace_h) $(store_h)
  3008.  
  3009. # ---------------- DCT filters ---------------- #
  3010. # The definitions for jpeg*.dev are in jpeg.mak.
  3011.  
  3012. dct.dev: $(INT_MAK) $(ECHOGS_XE) dcte.dev dctd.dev
  3013.     $(SETMOD) dct -include dcte dctd
  3014.  
  3015. # Common code
  3016.  
  3017. dctc_=zfdctc.$(OBJ)
  3018.  
  3019. zfdctc.$(OBJ): zfdctc.c $(GH) $(memory__h) $(stdio__h)\
  3020.  $(errors_h) $(opcheck_h)\
  3021.  $(idict_h) $(idparam_h) $(imemory_h) $(ipacked_h) $(iutil_h)\
  3022.  $(sdct_h) $(sjpeg_h) $(strimpl_h)\
  3023.  jpeglib.h
  3024.  
  3025. # Encoding (compression)
  3026.  
  3027. dcte_=$(dctc_) zfdcte.$(OBJ)
  3028. dcte.dev: $(INT_MAK) $(ECHOGS_XE) sdcte.dev $(dcte_)
  3029.     $(SETMOD) dcte -include sdcte
  3030.     $(ADDMOD) dcte -obj $(dcte_)
  3031.     $(ADDMOD) dcte -oper zfdcte
  3032.  
  3033. zfdcte.$(OBJ): zfdcte.c $(OP) $(memory__h) $(stdio__h)\
  3034.   $(idict_h) $(idparam_h) $(ifilter_h) $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  3035.   jpeglib.h
  3036.  
  3037. # Decoding (decompression)
  3038.  
  3039. dctd_=$(dctc_) zfdctd.$(OBJ)
  3040. dctd.dev: $(INT_MAK) $(ECHOGS_XE) sdctd.dev $(dctd_)
  3041.     $(SETMOD) dctd -include sdctd
  3042.     $(ADDMOD) dctd -obj $(dctd_)
  3043.     $(ADDMOD) dctd -oper zfdctd
  3044.  
  3045. zfdctd.$(OBJ): zfdctd.c $(OP) $(memory__h) $(stdio__h)\
  3046.  $(ifilter_h) $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  3047.  jpeglib.h
  3048.  
  3049. # ---------------- zlib/Flate filters ---------------- #
  3050.  
  3051. fzlib.dev: $(INT_MAK) $(ECHOGS_XE) zfzlib.$(OBJ) szlibe.dev szlibd.dev
  3052.     $(SETMOD) fzlib -include szlibe szlibd
  3053.     $(ADDMOD) fzlib -obj zfzlib.$(OBJ)
  3054.     $(ADDMOD) fzlib -oper zfzlib
  3055.  
  3056. zfzlib.$(OBJ): zfzlib.c $(OP) \
  3057.   $(errors_h) $(idict_h) $(ifilter_h) \
  3058.   $(spdiffx_h) $(spngpx_h) $(strimpl_h) $(szlibx_h)
  3059.     $(CCCZ) zfzlib.c
  3060.  
  3061. # ================================ PDF ================================ #
  3062.  
  3063. # We need most of the Level 2 interpreter to do PDF, but not all of it.
  3064. # In fact, we don't even need all of a Level 1 interpreter.
  3065.  
  3066. # Because of the way the PDF encodings are defined, they must get loaded
  3067. # before we install the Level 2 resource machinery.
  3068. # On the other hand, the PDF .ps files must get loaded after
  3069. # level2dict is defined.
  3070. pdfmin.dev: $(INT_MAK) $(ECHOGS_XE)\
  3071.  psbase.dev color.dev dps2lib.dev dps2read.dev\
  3072.  fdecode.dev type1.dev pdffonts.dev psl2lib.dev psl2read.dev pdfread.dev
  3073.     $(SETMOD) pdfmin -include psbase color dps2lib dps2read
  3074.     $(ADDMOD) pdfmin -include fdecode type1
  3075.     $(ADDMOD) pdfmin -include pdffonts psl2lib psl2read pdfread
  3076.     $(ADDMOD) pdfmin -emulator PDF
  3077.  
  3078. pdf.dev: $(INT_MAK) $(ECHOGS_XE)\
  3079.  pdfmin.dev cff.dev cidfont.dev cie.dev compfont.dev cmapread.dev dctd.dev\
  3080.  ttfont.dev type2.dev
  3081.     $(SETMOD) pdf -include pdfmin cff cidfont cie cmapread compfont dctd
  3082.     $(ADDMOD) pdf -include ttfont type2
  3083.  
  3084. # Reader only
  3085.  
  3086. pdffonts.dev: $(INT_MAK) $(ECHOGS_XE) \
  3087.   gs_mex_e.ps gs_mro_e.ps gs_pdf_e.ps gs_wan_e.ps
  3088.     $(SETMOD) pdffonts -ps gs_mex_e gs_mro_e gs_pdf_e gs_wan_e
  3089.  
  3090. # pdf_2ps must be the last .ps file loaded.
  3091. pdfread.dev: $(INT_MAK) $(ECHOGS_XE) fzlib.dev
  3092.     $(SETMOD) pdfread -include fzlib
  3093.     $(ADDMOD) pdfread -ps gs_pdf gs_l2img
  3094.     $(ADDMOD) pdfread -ps pdf_base pdf_draw pdf_font pdf_main pdf_sec
  3095.     $(ADDMOD) pdfread -ps pdf_2ps
  3096.  
  3097. # ============================= Main program ============================== #
  3098.  
  3099. gs.$(OBJ): gs.c $(GH) \
  3100.   $(imain_h) $(imainarg_h) $(iminst_h)
  3101.  
  3102. icontext.$(OBJ): icontext.c $(GH)\
  3103.  $(gsstruct_h) $(gxalloc_h)\
  3104.  $(dstack_h) $(estack_h) $(ostack_h)\
  3105.  $(icontext_h) $(igstate_h) $(store_h)
  3106.  
  3107. imainarg.$(OBJ): imainarg.c $(GH) $(ctype__h) $(memory__h) $(string__h) \
  3108.   $(gp_h) \
  3109.   $(gsargs_h) $(gscdefs_h) $(gsdevice_h) $(gsmdebug_h) $(gxdevice_h) $(gxdevmem_h) \
  3110.   $(errors_h) $(estack_h) $(files_h) \
  3111.   $(ialloc_h) $(imain_h) $(imainarg_h) $(iminst_h) \
  3112.   $(iname_h) $(interp_h) $(iscan_h) $(iutil_h) $(ivmspace_h) \
  3113.   $(ostack_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  3114.  
  3115. imain.$(OBJ): imain.c $(GH) $(memory__h) $(string__h)\
  3116.  $(gp_h) $(gslib_h) $(gsmatrix_h) $(gsutil_h) $(gxdevice_h)\
  3117.  $(dstack_h) $(errors_h) $(estack_h) $(files_h)\
  3118.  $(ialloc_h) $(idebug_h) $(idict_h) $(iname_h) $(interp_h)\
  3119.  $(isave_h) $(iscan_h) $(ivmspace_h)\
  3120.  $(main_h) $(oper_h) $(ostack_h)\
  3121.  $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  3122.  
  3123. interp.$(OBJ): interp.c $(GH) $(memory__h) $(string__h)\
  3124.  $(gsstruct_h)\
  3125.  $(dstack_h) $(errors_h) $(estack_h) $(files_h)\
  3126.  $(ialloc_h) $(iastruct_h) $(inamedef_h) $(idict_h) $(interp_h) $(ipacked_h)\
  3127.  $(iscan_h) $(isave_h) $(istack_h) $(iutil_h) $(ivmspace_h)\
  3128.  $(oper_h) $(ostack_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  3129.     $(CCINT) interp.c
  3130.  
  3131. ireclaim.$(OBJ): ireclaim.c $(GH) \
  3132.   $(errors_h) $(gsstruct_h) $(iastate_h) $(opdef_h) $(store_h) \
  3133.   $(dstack_h) $(estack_h) $(ostack_h)
  3134. #    Copyright (C) 1994, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  3135. # This file is part of Aladdin Ghostscript.
  3136. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  3137. # or distributor accepts any responsibility for the consequences of using it,
  3138. # or for whether it serves any particular purpose or works at all, unless he
  3139. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  3140. # License (the "License") for full details.
  3141. # Every copy of Aladdin Ghostscript must include a copy of the License,
  3142. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  3143. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  3144. # under certain conditions described in the License.  Among other things, the
  3145. # License requires that the copyright notice and this notice be preserved on
  3146. # all copies.
  3147.  
  3148. # makefile for Independent JPEG Group library code.
  3149.  
  3150. # NOTE: This makefile is only known to work with the following versions
  3151. # of the IJG library: 6, 6a.
  3152. # As of May 11, 1996, version 6a is the current version.
  3153. #
  3154. # You can get the IJG library by Internet anonymous FTP from the following
  3155. # places:
  3156. #    Standard distribution (tar + gzip format, Unix end-of-line):
  3157. #        ftp.uu.net:/graphics/jpeg/jpegsrc.v*.tar.gz
  3158. #        ftp.cs.wisc.edu:/ghost/jpegsrc.v*.tar.gz
  3159. #    MS-DOS archive (PKZIP a.k.a. zip format, MS-DOS end-of-line):
  3160. #        ftp.simtel.net:/pub/simtelnet/msdos/graphics/jpegsr*.zip
  3161. #        ftp.cs.wisc.edu:/ghost/jpeg-*.zip
  3162. # The first site named above (ftp.uu.net and ftp.simtel.net) is supposed
  3163. # to be the master distribution site, so it may have a more up-to-date
  3164. # version; the ftp.cs.wisc.edu site is the master distribution site for
  3165. # Ghostscript, so it will always have IJG library versions known to be
  3166. # compatible with Ghostscript.
  3167. #
  3168. # If the version number, and hence the subdirectory name, changes, you
  3169. # will probably want to change the definitions of JSRCDIR and possibly
  3170. # JVERSION (in the platform-specific makefile, not here) to reflect this,
  3171. # since that way you can use the IJG archive without change.
  3172. #
  3173. # NOTE: For some obscure reason (probably a bug in djtarx), if you are
  3174. # compiling on a DesqView/X system, you should use the zip version of the
  3175. # IJG library, not the tar.gz version.
  3176.  
  3177. # Define the name of this makefile.
  3178. JPEG_MAK=jpeg.mak
  3179.  
  3180. # JSRCDIR is defined in the platform-specific makefile, not here,
  3181. # as the directory where the IJG library sources are stored.
  3182. #JSRCDIR=jpeg-6a
  3183. # JVERSION is defined in the platform-specific makefile, not here,
  3184. # as the IJG library major version number (currently "5" or "6").
  3185. #JVERSION=6
  3186.  
  3187. JSRC=$(JSRCDIR)$(D)
  3188. # CCCJ is defined in gs.mak.
  3189. #CCCJ=$(CCC) -I. -I$(JSRCDIR)
  3190.  
  3191. # We keep all of the IJG code in a separate directory so as not to
  3192. # inadvertently mix it up with Aladdin Enterprises' own code.
  3193. # However, we need our own version of jconfig.h, and our own "wrapper" for
  3194. # jmorecfg.h.  We also need a substitute for jerror.c, in order to
  3195. # keep the error strings out of the automatic data segment in
  3196. # 16-bit environments.  For v5*, we also need our own version of jpeglib.h
  3197. # in order to change MAX_BLOCKS_IN_MCU for Adobe compatibility.
  3198. # (This need will go away when IJG v6 is released.)
  3199.  
  3200. # Because this file is included after lib.mak, we can't use _h macros
  3201. # to express indirect dependencies; instead, we build the dependencies
  3202. # into the rules for copying the files.
  3203. jconfig_h=jconfig.h
  3204. jerror_h=jerror.h
  3205. jmorecfg_h=jmorecfg.h
  3206. jpeglib_h=jpeglib.h
  3207.  
  3208. jconfig.h: gsjconf.h $(std_h)
  3209.     $(CP_) gsjconf.h jconfig.h
  3210.  
  3211. jmorecfg.h: gsjmorec.h jmcorig.h
  3212.     $(CP_) gsjmorec.h jmorecfg.h
  3213.  
  3214. jmcorig.h: $(JSRC)jmorecfg.h
  3215.     $(CP_) $(JSRC)jmorecfg.h jmcorig.h
  3216.  
  3217. jpeglib.h: jlib$(JVERSION).h jconfig.h jmorecfg.h
  3218.     $(CP_) jlib$(JVERSION).h jpeglib.h
  3219.  
  3220. jlib5.h: gsjpglib.h
  3221.     $(CP_) gsjpglib.h jlib5.h
  3222.  
  3223. jlib6.h: $(JSRC)jpeglib.h
  3224.     $(CP_) $(JSRC)jpeglib.h jlib6.h
  3225.  
  3226. # To ensure that the compiler finds our versions of jconfig.h and jmorecfg.h,
  3227. # regardless of the compiler's search rule, we must copy up all .c files,
  3228. # and all .h files that include either of these files, directly or
  3229. # indirectly.  The only such .h files currently are jinclude.h and jpeglib.h.
  3230. # (Currently, we supply our own version of jpeglib.h -- see above.)
  3231. # Also, to avoid including the JSRCDIR directory name in our source files,
  3232. # we must also copy up any other .h files that our own code references.
  3233. # Currently, the only such .h files are jerror.h and jversion.h.
  3234.  
  3235. JHCOPY=jinclude.h jpeglib.h jerror.h jversion.h
  3236.  
  3237. jinclude.h: $(JSRC)jinclude.h
  3238.     $(CP_) $(JSRC)jinclude.h jinclude.h
  3239.  
  3240. #jpeglib.h: $(JSRC)jpeglib.h
  3241. #    $(CP_) $(JSRC)jpeglib.h jpeglib.h
  3242.  
  3243. jerror.h: $(JSRC)jerror.h
  3244.     $(CP_) $(JSRC)jerror.h jerror.h
  3245.  
  3246. jversion.h: $(JSRC)jversion.h
  3247.     $(CP_) $(JSRC)jversion.h jversion.h
  3248.  
  3249. # In order to avoid having to keep the dependency lists for the IJG code
  3250. # accurate, we simply make all of them depend on the only files that
  3251. # we are ever going to change, and on all the .h files that must be copied up.
  3252. # This is too conservative, but only hurts us if we are changing our own
  3253. # j*.h files, which happens only rarely during development.
  3254.  
  3255. JDEP=$(AK) $(jconfig_h) $(jerror_h) $(jmorecfg_h) $(JHCOPY)
  3256.  
  3257. # Code common to compression and decompression.
  3258.  
  3259. jpegc_=jcomapi.$(OBJ) jutils.$(OBJ) sjpegerr.$(OBJ) jmemmgr.$(OBJ)
  3260. jpegc.dev: $(JPEG_MAK) $(ECHOGS_XE) $(jpegc_)
  3261.     $(SETMOD) jpegc $(jpegc_)
  3262.  
  3263. jcomapi.$(OBJ): $(JSRC)jcomapi.c $(JDEP)
  3264.     $(CP_) $(JSRC)jcomapi.c .
  3265.     $(CCCJ) jcomapi.c
  3266.     $(RM_) jcomapi.c
  3267.  
  3268. jutils.$(OBJ): $(JSRC)jutils.c $(JDEP)
  3269.     $(CP_) $(JSRC)jutils.c .
  3270.     $(CCCJ) jutils.c
  3271.     $(RM_) jutils.c
  3272.  
  3273. # Note that sjpegerr replaces jerror.
  3274. sjpegerr.$(OBJ): sjpegerr.c $(JDEP)
  3275.     $(CCCF) sjpegerr.c
  3276.  
  3277. jmemmgr.$(OBJ): $(JSRC)jmemmgr.c $(JDEP)
  3278.     $(CP_) $(JSRC)jmemmgr.c .
  3279.     $(CCCJ) jmemmgr.c
  3280.     $(RM_) jmemmgr.c
  3281.  
  3282. # Encoding (compression) code.
  3283.  
  3284. jpege.dev: jpege$(JVERSION).dev
  3285.     $(CP_) jpege$(JVERSION).dev jpege.dev
  3286.  
  3287. jpege5=jcapi.$(OBJ)
  3288. jpege6=jcapimin.$(OBJ) jcapistd.$(OBJ) jcinit.$(OBJ)
  3289.  
  3290. jpege_1=jccoefct.$(OBJ) jccolor.$(OBJ) jcdctmgr.$(OBJ) 
  3291. jpege_2=jchuff.$(OBJ) jcmainct.$(OBJ) jcmarker.$(OBJ) jcmaster.$(OBJ)
  3292. jpege_3=jcparam.$(OBJ) jcprepct.$(OBJ) jcsample.$(OBJ) jfdctint.$(OBJ)
  3293.  
  3294. jpege5.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpege5) $(jpege_1) $(jpege_2) $(jpege_3)
  3295.     $(SETMOD) jpege5 $(jpege5)
  3296.     $(ADDMOD) jpege5 -include jpegc
  3297.     $(ADDMOD) jpege5 -obj $(jpege_1)
  3298.     $(ADDMOD) jpege5 -obj $(jpege_2)
  3299.     $(ADDMOD) jpege5 -obj $(jpege_3)
  3300.  
  3301. jpege6.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpege6) $(jpege_1) $(jpege_2) $(jpege_3)
  3302.     $(SETMOD) jpege6 $(jpege6)
  3303.     $(ADDMOD) jpege6 -include jpegc
  3304.     $(ADDMOD) jpege6 -obj $(jpege_1)
  3305.     $(ADDMOD) jpege6 -obj $(jpege_2)
  3306.     $(ADDMOD) jpege6 -obj $(jpege_3)
  3307.  
  3308. # jcapi.c is v5* only
  3309. jcapi.$(OBJ): $(JSRC)jcapi.c $(JDEP)
  3310.     $(CP_) $(JSRC)jcapi.c .
  3311.     $(CCCJ) jcapi.c
  3312.     $(RM_) jcapi.c
  3313.   
  3314. # jcapimin.c is new in v6
  3315. jcapimin.$(OBJ): $(JSRC)jcapimin.c $(JDEP)
  3316.     $(CP_) $(JSRC)jcapimin.c .
  3317.     $(CCCJ) jcapimin.c
  3318.     $(RM_) jcapimin.c
  3319.  
  3320. # jcapistd.c is new in v6
  3321. jcapistd.$(OBJ): $(JSRC)jcapistd.c $(JDEP)
  3322.     $(CP_) $(JSRC)jcapistd.c .
  3323.     $(CCCJ) jcapistd.c
  3324.     $(RM_) jcapistd.c
  3325.  
  3326. # jcinit.c is new in v6
  3327. jcinit.$(OBJ): $(JSRC)jcinit.c $(JDEP)
  3328.     $(CP_) $(JSRC)jcinit.c .
  3329.     $(CCCJ) jcinit.c
  3330.     $(RM_) jcinit.c
  3331.  
  3332. jccoefct.$(OBJ): $(JSRC)jccoefct.c $(JDEP)
  3333.     $(CP_) $(JSRC)jccoefct.c .
  3334.     $(CCCJ) jccoefct.c
  3335.     $(RM_) jccoefct.c
  3336.  
  3337. jccolor.$(OBJ): $(JSRC)jccolor.c $(JDEP)
  3338.     $(CP_) $(JSRC)jccolor.c .
  3339.     $(CCCJ) jccolor.c
  3340.     $(RM_) jccolor.c
  3341.  
  3342. jcdctmgr.$(OBJ): $(JSRC)jcdctmgr.c $(JDEP)
  3343.     $(CP_) $(JSRC)jcdctmgr.c .
  3344.     $(CCCJ) jcdctmgr.c
  3345.     $(RM_) jcdctmgr.c
  3346.  
  3347. jchuff.$(OBJ): $(JSRC)jchuff.c $(JDEP)
  3348.     $(CP_) $(JSRC)jchuff.c .
  3349.     $(CCCJ) jchuff.c
  3350.     $(RM_) jchuff.c
  3351.  
  3352. jcmainct.$(OBJ): $(JSRC)jcmainct.c $(JDEP)
  3353.     $(CP_) $(JSRC)jcmainct.c .
  3354.     $(CCCJ) jcmainct.c
  3355.     $(RM_) jcmainct.c
  3356.  
  3357. jcmarker.$(OBJ): $(JSRC)jcmarker.c $(JDEP)
  3358.     $(CP_) $(JSRC)jcmarker.c .
  3359.     $(CCCJ) jcmarker.c
  3360.     $(RM_) jcmarker.c
  3361.  
  3362. jcmaster.$(OBJ): $(JSRC)jcmaster.c $(JDEP)
  3363.     $(CP_) $(JSRC)jcmaster.c .
  3364.     $(CCCJ) jcmaster.c
  3365.     $(RM_) jcmaster.c
  3366.  
  3367. jcparam.$(OBJ): $(JSRC)jcparam.c $(JDEP)
  3368.     $(CP_) $(JSRC)jcparam.c .
  3369.     $(CCCJ) jcparam.c
  3370.     $(RM_) jcparam.c
  3371.  
  3372. jcprepct.$(OBJ): $(JSRC)jcprepct.c $(JDEP)
  3373.     $(CP_) $(JSRC)jcprepct.c .
  3374.     $(CCCJ) jcprepct.c
  3375.     $(RM_) jcprepct.c
  3376.  
  3377. jcsample.$(OBJ): $(JSRC)jcsample.c $(JDEP)
  3378.     $(CP_) $(JSRC)jcsample.c .
  3379.     $(CCCJ) jcsample.c
  3380.     $(RM_) jcsample.c
  3381.  
  3382. jfdctint.$(OBJ): $(JSRC)jfdctint.c $(JDEP)
  3383.     $(CP_) $(JSRC)jfdctint.c .
  3384.     $(CCCJ) jfdctint.c
  3385.     $(RM_) jfdctint.c
  3386.  
  3387. # Decompression code
  3388.  
  3389. jpegd.dev: jpegd$(JVERSION).dev
  3390.     $(CP_) jpegd$(JVERSION).dev jpegd.dev
  3391.  
  3392. jpegd5=jdapi.$(OBJ)
  3393. jpegd6=jdapimin.$(OBJ) jdapistd.$(OBJ) jdinput.$(OBJ) jdphuff.$(OBJ)
  3394.  
  3395. jpegd_1=jdcoefct.$(OBJ) jdcolor.$(OBJ)
  3396. jpegd_2=jddctmgr.$(OBJ) jdhuff.$(OBJ) jdmainct.$(OBJ) jdmarker.$(OBJ)
  3397. jpegd_3=jdmaster.$(OBJ) jdpostct.$(OBJ) jdsample.$(OBJ) jidctint.$(OBJ)
  3398.  
  3399. jpegd5.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpegd5) $(jpegd_1) $(jpegd_2) $(jpegd_3)
  3400.     $(SETMOD) jpegd5 $(jpegd5)
  3401.     $(ADDMOD) jpegd5 -include jpegc
  3402.     $(ADDMOD) jpegd5 -obj $(jpegd_1)
  3403.     $(ADDMOD) jpegd5 -obj $(jpegd_2)
  3404.     $(ADDMOD) jpegd5 -obj $(jpegd_3)
  3405.  
  3406. jpegd6.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpegd6) $(jpegd_1) $(jpegd_2) $(jpegd_3)
  3407.     $(SETMOD) jpegd6 $(jpegd6)
  3408.     $(ADDMOD) jpegd6 -include jpegc
  3409.     $(ADDMOD) jpegd6 -obj $(jpegd_1)
  3410.     $(ADDMOD) jpegd6 -obj $(jpegd_2)
  3411.     $(ADDMOD) jpegd6 -obj $(jpegd_3)
  3412.  
  3413. # jdapi.c is v5* only
  3414. jdapi.$(OBJ): $(JSRC)jdapi.c $(JDEP)
  3415.     $(CP_) $(JSRC)jdapi.c .
  3416.     $(CCCJ) jdapi.c
  3417.     $(RM_) jdapi.c
  3418.  
  3419. # jdapimin.c is new in v6
  3420. jdapimin.$(OBJ): $(JSRC)jdapimin.c $(JDEP)
  3421.     $(CP_) $(JSRC)jdapimin.c .
  3422.     $(CCCJ) jdapimin.c
  3423.     $(RM_) jdapimin.c
  3424.  
  3425. # jdapistd.c is new in v6
  3426. jdapistd.$(OBJ): $(JSRC)jdapistd.c $(JDEP)
  3427.     $(CP_) $(JSRC)jdapistd.c .
  3428.     $(CCCJ) jdapistd.c
  3429.     $(RM_) jdapistd.c
  3430.  
  3431. jdcoefct.$(OBJ): $(JSRC)jdcoefct.c $(JDEP)
  3432.     $(CP_) $(JSRC)jdcoefct.c .
  3433.     $(CCCJ) jdcoefct.c
  3434.     $(RM_) jdcoefct.c
  3435.  
  3436. jdcolor.$(OBJ): $(JSRC)jdcolor.c $(JDEP)
  3437.     $(CP_) $(JSRC)jdcolor.c .
  3438.     $(CCCJ) jdcolor.c
  3439.     $(RM_) jdcolor.c
  3440.  
  3441. jddctmgr.$(OBJ): $(JSRC)jddctmgr.c $(JDEP)
  3442.     $(CP_) $(JSRC)jddctmgr.c .
  3443.     $(CCCJ) jddctmgr.c
  3444.     $(RM_) jddctmgr.c
  3445.  
  3446. jdhuff.$(OBJ): $(JSRC)jdhuff.c $(JDEP)
  3447.     $(CP_) $(JSRC)jdhuff.c .
  3448.     $(CCCJ) jdhuff.c
  3449.     $(RM_) jdhuff.c
  3450.  
  3451. # jdinput.c is new in v6
  3452. jdinput.$(OBJ): $(JSRC)jdinput.c $(JDEP)
  3453.     $(CP_) $(JSRC)jdinput.c .
  3454.     $(CCCJ) jdinput.c
  3455.     $(RM_) jdinput.c
  3456.  
  3457. jdmainct.$(OBJ): $(JSRC)jdmainct.c $(JDEP)
  3458.     $(CP_) $(JSRC)jdmainct.c .
  3459.     $(CCCJ) jdmainct.c
  3460.     $(RM_) jdmainct.c
  3461.  
  3462. jdmarker.$(OBJ): $(JSRC)jdmarker.c $(JDEP)
  3463.     $(CP_) $(JSRC)jdmarker.c .
  3464.     $(CCCJ) jdmarker.c
  3465.     $(RM_) jdmarker.c
  3466.  
  3467. jdmaster.$(OBJ): $(JSRC)jdmaster.c $(JDEP)
  3468.     $(CP_) $(JSRC)jdmaster.c .
  3469.     $(CCCJ) jdmaster.c
  3470.     $(RM_) jdmaster.c
  3471.  
  3472. # jdphuff.c is new in v6
  3473. jdphuff.$(OBJ): $(JSRC)jdphuff.c $(JDEP)
  3474.     $(CP_) $(JSRC)jdphuff.c .
  3475.     $(CCCJ) jdphuff.c
  3476.     $(RM_) jdphuff.c
  3477.  
  3478. jdpostct.$(OBJ): $(JSRC)jdpostct.c $(JDEP)
  3479.     $(CP_) $(JSRC)jdpostct.c .
  3480.     $(CCCJ) jdpostct.c
  3481.     $(RM_) jdpostct.c
  3482.  
  3483. jdsample.$(OBJ): $(JSRC)jdsample.c $(JDEP)
  3484.     $(CP_) $(JSRC)jdsample.c .
  3485.     $(CCCJ) jdsample.c
  3486.     $(RM_) jdsample.c
  3487.  
  3488. jidctint.$(OBJ): $(JSRC)jidctint.c $(JDEP)
  3489.     $(CP_) $(JSRC)jidctint.c .
  3490.     $(CCCJ) jidctint.c
  3491.     $(RM_) jidctint.c
  3492. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  3493. # This file is part of Aladdin Ghostscript.
  3494. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  3495. # or distributor accepts any responsibility for the consequences of using it,
  3496. # or for whether it serves any particular purpose or works at all, unless he
  3497. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  3498. # License (the "License") for full details.
  3499. # Every copy of Aladdin Ghostscript must include a copy of the License,
  3500. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  3501. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  3502. # under certain conditions described in the License.  Among other things, the
  3503. # License requires that the copyright notice and this notice be preserved on
  3504. # all copies.
  3505.  
  3506. # makefile for PNG (Portable Network Graphics) code.
  3507.  
  3508. # This partial makefile compiles the png library for use in the Ghostscript
  3509. # PNG drivers.  You can get the source code for this library from:
  3510. #   ftp://swrinde.nde.swri.edu/pub/png/src/
  3511. # The makefile is known to work with the following library versions:
  3512. # 0.88, 0.89, 0.90, 0.95, and 0.96.  NOTE: the archive for libpng 0.95 may
  3513. # be inconsistent: if you have compilation problems, use an older version.
  3514. # Please see Ghostscript's `make.txt' file for instructions about how to
  3515. # unpack these archives.
  3516. #
  3517. # The specification for the PNG file format is available from:
  3518. #   http://www.group42.com/png.htm
  3519. #   http://www.w3.org/pub/WWW/TR/WD-png
  3520.  
  3521. # Define the name of this makefile.
  3522. LIBPNG_MAK=libpng.mak
  3523.  
  3524. # PSRCDIR is defined in the platform-specific makefile, not here,
  3525. # as the directory where the PNG library sources are stored.
  3526. #PSRCDIR=libpng
  3527. # PVERSION is defined in the platform-specific makefile, not here,
  3528. # as the libpng version number ("88", "89", "90", "95", or "96").
  3529. #PVERSION=96
  3530.  
  3531. PSRC=$(PSRCDIR)$(D)
  3532. # CCCP is defined in gs.mak.
  3533. #CCCP=$(CCC) -I$(PSRCDIR) -I$(ZSRCDIR)
  3534.  
  3535. # We keep all of the PNG code in a separate directory so as not to
  3536. # inadvertently mix it up with Aladdin Enterprises' own code.
  3537. PDEP=$(AK)
  3538.  
  3539. png_1=png.$(OBJ) pngmem.$(OBJ) pngerror.$(OBJ)
  3540. png_2=pngtrans.$(OBJ) pngwrite.$(OBJ) pngwtran.$(OBJ) pngwutil.$(OBJ)
  3541.  
  3542. # libpng modules
  3543.  
  3544. png.$(OBJ): $(PSRC)png.c $(PDEP)
  3545.     $(CCCP) $(PSRC)png.c
  3546.  
  3547. # version 0.88 uses pngio.c
  3548. pngio.$(OBJ): $(PSRC)pngio.c $(PDEP)
  3549.     $(CCCP) $(PSRC)pngio.c
  3550.  
  3551. # version 0.89 uses pngwio.c
  3552. pngwio.$(OBJ): $(PSRC)pngwio.c $(PDEP)
  3553.     $(CCCP) $(PSRC)pngwio.c
  3554.  
  3555. pngmem.$(OBJ): $(PSRC)pngmem.c $(PDEP)
  3556.     $(CCCP) $(PSRC)pngmem.c
  3557.  
  3558. pngerror.$(OBJ): $(PSRC)pngerror.c $(PDEP)
  3559.     $(CCCP) $(PSRC)pngerror.c
  3560.  
  3561. pngtrans.$(OBJ): $(PSRC)pngtrans.c $(PDEP)
  3562.     $(CCCP) $(PSRC)pngtrans.c
  3563.  
  3564. pngwrite.$(OBJ): $(PSRC)pngwrite.c $(PDEP)
  3565.     $(CCCP) $(PSRC)pngwrite.c
  3566.  
  3567. pngwtran.$(OBJ): $(PSRC)pngwtran.c $(PDEP)
  3568.     $(CCCP) $(PSRC)pngwtran.c
  3569.  
  3570. pngwutil.$(OBJ): $(PSRC)pngwutil.c $(PDEP)
  3571.     $(CCCP) $(PSRC)pngwutil.c
  3572.  
  3573. # Define the version of libpng.dev that we are actually using.
  3574. libpng.dev: $(MAKEFILE) libpng_$(SHARE_LIBPNG).dev
  3575.     $(CP_) libpng_$(SHARE_LIBPNG).dev libpng.dev
  3576.  
  3577. # Define the shared version of libpng.
  3578. libpng_1.dev: $(MAKEFILE) $(LIBPNG_MAK) $(ECHOGS_XE)
  3579.     $(SETMOD) libpng_1 -lib $(LIBPNG_NAME)
  3580.  
  3581. # Define the non-shared version of libpng.
  3582. libpng_0.dev: $(LIBPNG_MAK) $(ECHOGS_XE) $(png_1) $(png_2)\
  3583.  zlibe.dev libpng$(PVERSION).dev
  3584.     $(SETMOD) libpng_0 $(png_1)
  3585.     $(ADDMOD) libpng_0 $(png_2)
  3586.     $(ADDMOD) libpng_0 -include zlibe libpng$(PVERSION)
  3587.  
  3588. libpng88.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngio.$(OBJ)
  3589.     $(SETMOD) libpng88 pngio.$(OBJ)
  3590.  
  3591. libpng89.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ)
  3592.     $(SETMOD) libpng89 pngwio.$(OBJ)
  3593.  
  3594. libpng90.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) crc32.dev
  3595.     $(SETMOD) libpng90 pngwio.$(OBJ) -include crc32
  3596.  
  3597. libpng95.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) crc32.dev
  3598.     $(SETMOD) libpng95 pngwio.$(OBJ) -include crc32
  3599.  
  3600. libpng96.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) crc32.dev
  3601.     $(SETMOD) libpng96 pngwio.$(OBJ) -include crc32
  3602. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  3603. # This file is part of Aladdin Ghostscript.
  3604. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  3605. # or distributor accepts any responsibility for the consequences of using it,
  3606. # or for whether it serves any particular purpose or works at all, unless he
  3607. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  3608. # License (the "License") for full details.
  3609. # Every copy of Aladdin Ghostscript must include a copy of the License,
  3610. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  3611. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  3612. # under certain conditions described in the License.  Among other things, the
  3613. # License requires that the copyright notice and this notice be preserved on
  3614. # all copies.
  3615.  
  3616. # makefile for zlib library code.
  3617.  
  3618. # This partial makefile compiles the zlib library for use in Ghostscript.
  3619. # You can get the source code for this library from:
  3620. #   ftp://ftp.uu.net/pub/archiving/zip/zlib/zlib104.zip   (zlib 1.0.4)
  3621. #        or zlib-1.0.4.tar.gz
  3622. # Please see Ghostscript's `make.txt' file for instructions about how to
  3623. # unpack these archives.
  3624.  
  3625. # Define the name of this makefile.
  3626. ZLIB_MAK=zlib.mak
  3627.  
  3628. # ZSRCDIR is defined in the platform-specific makefile, not here,
  3629. # as the directory where the zlib sources are stored.
  3630. #ZSRCDIR=zlib
  3631. ZSRC=$(ZSRCDIR)$(D)
  3632. # We would like to define
  3633. #CCCZ=$(CCC) -I$(ZSRCDIR) -Dverbose=-1
  3634. # but the Watcom C compiler has strange undocumented restrictions on what can
  3635. # follow a -D=, and it doesn't allow negative numbers.  Instead, we define
  3636. # (in gs.mak):
  3637. #CCCZ=$(CCC) -I. -I$(ZSRCDIR)
  3638. # and handle the definition of verbose in a different, more awkward way.
  3639.  
  3640. # We keep all of the zlib code in a separate directory so as not to
  3641. # inadvertently mix it up with Aladdin Enterprises' own code.
  3642. ZDEP=$(AK)
  3643.  
  3644. # Contrary to what some portability bigots assert as fact, C compilers are
  3645. # not consistent about where they start searching for #included files:
  3646. # some always start by looking in the same directory as the .c file being
  3647. # compiled, before using the search path specified with -I on the command
  3648. # line, while others do not do this.  For this reason, we must explicitly
  3649. # copy and then delete all the .c files, because they need to obtain our
  3650. # modified version of zutil.h.  We must also copy all header files that
  3651. # reference zutil.h directly or indirectly.
  3652.  
  3653. # Code common to compression and decompression.
  3654.  
  3655. zlibc_=zutil.$(OBJ)
  3656. zlibc.dev: $(ZLIB_MAK) $(ECHOGS_XE) $(zlibc_)
  3657.     $(SETMOD) zlibc $(zlibc_)
  3658.  
  3659. zutil.h: $(ZSRC)zutil.h $(ECHOGS_XE)
  3660.     $(EXP)echogs -w zutil.h -x 23 define verbose -s - -1
  3661.     $(EXP)echogs -a zutil.h -+R $(ZSRC)zutil.h
  3662.  
  3663. zutil.$(OBJ): $(ZSRC)zutil.c $(ZDEP) zutil.h
  3664.     $(CP_) $(ZSRC)zutil.c .
  3665.     $(CCCZ) zutil.c
  3666.     $(RM_) zutil.c
  3667.  
  3668. # Encoding (compression) code.
  3669.  
  3670. deflate.h: $(ZSRC)deflate.h zutil.h
  3671.     $(CP_) $(ZSRC)deflate.h deflate.h
  3672.  
  3673. zlibe.dev: $(MAKEFILE) zlibe_$(SHARE_ZLIB).dev
  3674.     $(CP_) zlibe_$(SHARE_ZLIB).dev zlibe.dev
  3675.  
  3676. zlibe_1.dev: $(MAKEFILE) $(ZLIB_MAK) $(ECHOGS_XE)
  3677.     $(SETMOD) zlibe_1 -lib $(ZLIB_NAME)
  3678.  
  3679. zlibe_=adler32.$(OBJ) deflate.$(OBJ) trees.$(OBJ)
  3680. zlibe_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev $(zlibe_)
  3681.     $(SETMOD) zlibe_0 $(zlibe_)
  3682.     $(ADDMOD) zlibe_0 -include zlibc
  3683.  
  3684. adler32.$(OBJ): $(ZSRC)adler32.c $(ZDEP)
  3685.     $(CP_) $(ZSRC)adler32.c .
  3686.     $(CCCZ) adler32.c
  3687.     $(RM_) adler32.c
  3688.  
  3689. deflate.$(OBJ): $(ZSRC)deflate.c $(ZDEP) deflate.h
  3690.     $(CP_) $(ZSRC)deflate.c .
  3691.     $(CCCZ) deflate.c
  3692.     $(RM_) deflate.c
  3693.  
  3694. trees.$(OBJ): $(ZSRC)trees.c $(ZDEP) deflate.h
  3695.     $(CP_) $(ZSRC)trees.c .
  3696.     $(CCCZ) trees.c
  3697.     $(RM_) trees.c
  3698.  
  3699. # The zlib filters per se don't need crc32, but libpng versions starting
  3700. # with 0.90 do.
  3701.  
  3702. crc32.dev: $(MAKEFILE) crc32_$(SHARE_ZLIB).dev
  3703.     $(CP_) crc32_$(SHARE_ZLIB).dev crc32.dev
  3704.  
  3705. crc32_1.dev: $(MAKEFILE) $(ZLIB_MAK) $(ECHOGS_XE)
  3706.     $(SETMOD) crc32_1 -lib $(ZLIB_NAME)
  3707.  
  3708. crc32_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) crc32.$(OBJ)
  3709.     $(SETMOD) crc32_0 crc32.$(OBJ)
  3710.  
  3711. crc32.$(OBJ): $(ZSRC)crc32.c $(ZDEP) deflate.h
  3712.     $(CP_) $(ZSRC)crc32.c .
  3713.     $(CCCZ) crc32.c
  3714.     $(RM_) crc32.c
  3715.  
  3716. # Decoding (decompression) code.
  3717.  
  3718. zlibd.dev: $(MAKEFILE) zlibd_$(SHARE_ZLIB).dev
  3719.     $(CP_) zlibd_$(SHARE_ZLIB).dev zlibd.dev
  3720.  
  3721. zlibd_1.dev: $(MAKEFILE) $(ZLIB_MAK) $(ECHOGS_XE)
  3722.     $(SETMOD) zlibd_1 -lib $(ZLIB_NAME)
  3723.  
  3724. zlibd1_=infblock.$(OBJ) infcodes.$(OBJ) inffast.$(OBJ)
  3725. zlibd2_=inflate.$(OBJ) inftrees.$(OBJ) infutil.$(OBJ)
  3726. zlibd_ = $(zlibd1_) $(zlibd2_)
  3727. zlibd_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev $(zlibd_)
  3728.     $(SETMOD) zlibd_0 $(zlibd1_)
  3729.     $(ADDMOD) zlibd_0 -obj $(zlibd2_)
  3730.     $(ADDMOD) zlibd_0 -include zlibc
  3731.  
  3732. infblock.$(OBJ): $(ZSRC)infblock.c $(ZDEP) zutil.h
  3733.     $(CP_) $(ZSRC)infblock.c .
  3734.     $(CCCZ) infblock.c
  3735.     $(RM_) infblock.c
  3736.  
  3737. infcodes.$(OBJ): $(ZSRC)infcodes.c $(ZDEP) zutil.h
  3738.     $(CP_) $(ZSRC)infcodes.c .
  3739.     $(CCCZ) infcodes.c
  3740.     $(RM_) infcodes.c
  3741.  
  3742. inffast.$(OBJ): $(ZSRC)inffast.c $(ZDEP) zutil.h
  3743.     $(CP_) $(ZSRC)inffast.c .
  3744.     $(CCCZ) inffast.c
  3745.     $(RM_) inffast.c
  3746.  
  3747. inflate.$(OBJ): $(ZSRC)inflate.c $(ZDEP) zutil.h
  3748.     $(CP_) $(ZSRC)inflate.c .
  3749.     $(CCCZ) inflate.c
  3750.     $(RM_) inflate.c
  3751.  
  3752. inftrees.$(OBJ): $(ZSRC)inftrees.c $(ZDEP) zutil.h
  3753.     $(CP_) $(ZSRC)inftrees.c .
  3754.     $(CCCZ) inftrees.c
  3755.     $(RM_) inftrees.c
  3756.  
  3757. infutil.$(OBJ): $(ZSRC)infutil.c $(ZDEP) zutil.h
  3758.     $(CP_) $(ZSRC)infutil.c .
  3759.     $(CCCZ) infutil.c
  3760.     $(RM_) infutil.c
  3761. #    Copyright (C) 1989, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  3762. # This file is part of Aladdin Ghostscript.
  3763. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  3764. # or distributor accepts any responsibility for the consequences of using it,
  3765. # or for whether it serves any particular purpose or works at all, unless he
  3766. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  3767. # License (the "License") for full details.
  3768. # Every copy of Aladdin Ghostscript must include a copy of the License,
  3769. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  3770. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  3771. # under certain conditions described in the License.  Among other things, the
  3772. # License requires that the copyright notice and this notice be preserved on
  3773. # all copies.
  3774.  
  3775. # makefile for device drivers.
  3776.  
  3777. # Define the name of this makefile.
  3778. DEVS_MAK=devs.mak
  3779.  
  3780. ###### --------------------------- Catalog -------------------------- ######
  3781.  
  3782. # It is possible to build configurations with an arbitrary collection of
  3783. # device drivers, although some drivers are supported only on a subset
  3784. # of the target platforms.  The currently available drivers are:
  3785.  
  3786. # MS-DOS displays (note: not usable with Desqview/X):
  3787. #   MS-DOS EGA and VGA:
  3788. #    ega    EGA (640x350, 16-color)
  3789. #    vga    VGA (640x480, 16-color)
  3790. #   MS-DOS SuperVGA:
  3791. # *    ali    SuperVGA using Avance Logic Inc. chipset, 256-color modes
  3792. # *    atiw    ATI Wonder SuperVGA, 256-color modes
  3793. # *    s3vga    SuperVGA using S3 86C911 chip (e.g., Diamond Stealth board)
  3794. #    svga16    Generic SuperVGA in 800x600, 16-color mode
  3795. # *    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  3796. # *    tvga    SuperVGA using Trident chipset, 256-color modes
  3797. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  3798. #   ****** compiler or executable.
  3799. #    vesa    SuperVGA with VESA standard API driver
  3800. #   MS-DOS other:
  3801. #    bgi    Borland Graphics Interface (CGA)  [MS-DOS only]
  3802. # *    herc    Hercules Graphics display   [MS-DOS only]
  3803. # *    pe    Private Eye display
  3804. # Other displays:
  3805. #   MS Windows:
  3806. #    mswindll  Microsoft Windows 3.1 DLL  [MS Windows only]
  3807. #    mswinprn  Microsoft Windows 3.0, 3.1 DDB printer  [MS Windows only]
  3808. #    mswinpr2  Microsoft Windows 3.0, 3.1 DIB printer  [MS Windows only]
  3809. #   OS/2:
  3810. # *    os2pm    OS/2 Presentation Manager   [OS/2 only]
  3811. # *    os2dll    OS/2 DLL bitmap             [OS/2 only]
  3812. # *    os2prn    OS/2 printer                [OS/2 only]
  3813. #   Unix and VMS:
  3814. #   ****** NOTE: For direct frame buffer addressing under SCO Unix or Xenix,
  3815. #   ****** edit the definition of EGAVGA below.
  3816. # *    att3b1    AT&T 3b1/Unixpc monochrome display   [3b1 only]
  3817. # *    lvga256  Linux vgalib, 256-color VGA modes  [Linux only]
  3818. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  3819. # *    sunview  SunView window system   [SunOS only]
  3820. # +    vgalib    Linux PC with VGALIB   [Linux only]
  3821. #    x11    X Windows version 11, release >=4   [Unix and VMS only]
  3822. #    x11alpha  X Windows masquerading as a device with alpha capability
  3823. #    x11cmyk  X Windows masquerading as a 1-bit-per-plane CMYK device
  3824. #    x11gray2  X Windows as a 2-bit gray-scale device
  3825. #    x11mono  X Windows masquerading as a black-and-white device
  3826. #   Platform-independent:
  3827. # *    sxlcrt    CRT sixels, e.g. for VT240-like terminals
  3828. # Printers:
  3829. # *    ap3250    Epson AP3250 printer
  3830. # *    appledmp  Apple Dot Matrix Printer (should also work with Imagewriter)
  3831. #    bj10e    Canon BubbleJet BJ10e
  3832. # *    bj200    Canon BubbleJet BJ200
  3833. # *    bjc600   Canon Color BubbleJet BJC-600, BJC-4000 and BJC-70
  3834. #               also good for Apple printers like the StyleWriter 2x00
  3835. # *    bjc800   Canon Color BubbleJet BJC-800
  3836. # *     ccr     CalComp Raster format
  3837. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  3838. # *    cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and
  3839. #        high-quality color (Floyd-Steinberg) dithering;
  3840. #        also good for DeskJet 540C and Citizen Projet IIc (-r200x300)
  3841. # *    cdjmono  H-P DeskJet 500C printing black only;
  3842. #        also good for DeskJet 510, 520, and 540C (black only)
  3843. # *    cdj500    H-P DeskJet 500C (same as cdjcolor)
  3844. # *    cdj550    H-P DeskJet 550C/560C
  3845. # *    cp50    Mitsubishi CP50 color printer
  3846. # *    declj250  alternate DEC LJ250 driver
  3847. # +    deskjet  H-P DeskJet and DeskJet Plus
  3848. #    djet500  H-P DeskJet 500
  3849. # *    djet500c  H-P DeskJet 500C alternate driver
  3850. #        (does not work on 550C or 560C)
  3851. # *    dnj650c  H-P DesignJet 650C
  3852. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  3853. # *    eps9mid  Epson-compatible 9-pin, interleaved lines
  3854. #        (intermediate resolution)
  3855. # *    eps9high  Epson-compatible 9-pin, interleaved lines
  3856. #        (triple resolution)
  3857. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  3858. # *    ibmpro  IBM 9-pin Proprinter
  3859. # *    imagen    Imagen ImPress printers
  3860. # *    iwhi    Apple Imagewriter in high-resolution mode
  3861. # *    iwlo    Apple Imagewriter in low-resolution mode
  3862. # *    iwlq    Apple Imagewriter LQ in 320 x 216 dpi mode
  3863. # *    jetp3852  IBM Jetprinter ink-jet color printer (Model #3852)
  3864. # +    laserjet  H-P LaserJet
  3865. # *    la50    DEC LA50 printer
  3866. # *    la70    DEC LA70 printer
  3867. # *    la70t    DEC LA70 printer with low-resolution text enhancement
  3868. # *    la75    DEC LA75 printer
  3869. # *    la75plus DEC LA75plus printer
  3870. # *    lbp8    Canon LBP-8II laser printer
  3871. # *    lips3    Canon LIPS III laser printer in English (CaPSL) mode
  3872. # *    ln03    DEC LN03 printer
  3873. # *    lj250    DEC LJ250 Companion color printer
  3874. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  3875. # +    ljet3    H-P LaserJet III* with Delta Row compression
  3876. # +    ljet3d    H-P LaserJet IIID with duplex capability
  3877. # +    ljet4    H-P LaserJet 4 (defaults to 600 dpi)
  3878. # +    lj4dith  H-P LaserJet 4 with Floyd-Steinberg dithering
  3879. # +    ljetplus  H-P LaserJet Plus
  3880. #    lj5mono  H-P LaserJet 5 & 6 family (PCL XL), bitmap:
  3881. #        see below for restrictions & advice
  3882. #    lj5gray  H-P LaserJet 5 & 6 family, gray-scale bitmap;
  3883. #        see below for restrictions & advice
  3884. # *    lp2563    H-P 2563B line printer
  3885. # *    lp8000    Epson LP-8000 laser printer
  3886. # *    m8510    C.Itoh M8510 printer
  3887. # *    necp6    NEC P6/P6+/P60 printers at 360 x 360 DPI resolution
  3888. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  3889. # *    oce9050  OCE 9050 printer
  3890. # *    oki182    Okidata MicroLine 182
  3891. # *    okiibm    Okidata MicroLine IBM-compatible printers
  3892. # *    paintjet  alternate H-P PaintJet color printer
  3893. # *    pj    H-P PaintJet XL driver 
  3894. # *    pjetxl    alternate H-P PaintJet XL driver
  3895. # *    pjxl    H-P PaintJet XL color printer
  3896. # *    pjxl300  H-P PaintJet XL300 color printer;
  3897. #        also good for PaintJet 1200C
  3898. #    (pxlmono) H-P black-and-white PCL XL printers (LaserJet 5 and 6 family)
  3899. #    (pxlcolor) H-P color PCL XL printers (none available yet)
  3900. # *    r4081    Ricoh 4081 laser printer
  3901. # *    sj48    StarJet 48 inkjet printer
  3902. # *    sparc    SPARCprinter
  3903. # *    st800    Epson Stylus 800 printer
  3904. # *    stcolor    Epson Stylus Color
  3905. # *    t4693d2  Tektronix 4693d color printer, 2 bits per R/G/B component
  3906. # *    t4693d4  Tektronix 4693d color printer, 4 bits per R/G/B component
  3907. # *    t4693d8  Tektronix 4693d color printer, 8 bits per R/G/B component
  3908. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  3909. # *    uniprint  Unified printer driver -- Configurable Color ESC/P-,
  3910. #        ESC/P2-, HP-RTL/PCL mono/color driver
  3911. # *    xes    Xerox XES printers (2700, 3700, 4045, etc.)
  3912. # Fax systems:
  3913. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  3914. # *    dfaxlow  DigiFAX low (normal) resolution
  3915. # Fax file format:
  3916. #   ****** NOTE: all of these drivers adjust the page size to match
  3917. #   ****** one of the three CCITT standard sizes (U.S. letter with A4 width,
  3918. #   ****** A4, or B4).
  3919. #    faxg3    Group 3 fax, with EOLs but no header or EOD
  3920. #    faxg32d  Group 3 2-D fax, with EOLs but no header or EOD
  3921. #    faxg4    Group 4 fax, with EOLs but no header or EOD
  3922. #    tiffcrle  TIFF "CCITT RLE 1-dim" (= Group 3 fax with no EOLs)
  3923. #    tiffg3    TIFF Group 3 fax (with EOLs)
  3924. #    tiffg32d  TIFF Group 3 2-D fax
  3925. #    tiffg4    TIFF Group 4 fax
  3926. # High-level file formats:
  3927. #    epswrite  EPS output (like PostScript Distillery)
  3928. #    pdfwrite  PDF output (like Adobe Acrobat Distiller)
  3929. #    pswrite  PostScript output (like PostScript Distillery)
  3930. #    pxlmono  Black-and-white PCL XL
  3931. #    pxlcolor  Color PCL XL
  3932. # Other raster file formats and devices:
  3933. #    bit    Plain bits, monochrome
  3934. #    bitrgb    Plain bits, RGB
  3935. #    bitcmyk  Plain bits, CMYK
  3936. #    bmpmono    Monochrome MS Windows .BMP file format
  3937. #    bmp16    4-bit (EGA/VGA) .BMP file format
  3938. #    bmp256    8-bit (256-color) .BMP file format
  3939. #    bmp16m    24-bit .BMP file format
  3940. #    cgmmono  Monochrome (black-and-white) CGM -- LOW LEVEL OUTPUT ONLY
  3941. #    cgm8    8-bit (256-color) CGM -- DITTO
  3942. #    cgm24    24-bit color CGM -- DITTO
  3943. # *    cif    CIF file format for VLSI
  3944. #    jpeg    JPEG format, RGB output
  3945. #    jpeggray  JPEG format, gray output
  3946. #    miff24    ImageMagick MIFF format, 24-bit direct color, RLE compressed
  3947. # *    mgrmono  1-bit monochrome MGR devices
  3948. # *    mgrgray2  2-bit gray scale MGR devices
  3949. # *    mgrgray4  4-bit gray scale MGR devices
  3950. # *    mgrgray8  8-bit gray scale MGR devices
  3951. # *    mgr4    4-bit (VGA) color MGR devices
  3952. # *    mgr8    8-bit color MGR devices
  3953. #    pcxmono    PCX file format, monochrome (1-bit black and white)
  3954. #    pcxgray    PCX file format, 8-bit gray scale
  3955. #    pcx16    PCX file format, 4-bit planar (EGA/VGA) color
  3956. #    pcx256    PCX file format, 8-bit chunky color
  3957. #    pcx24b    PCX file format, 24-bit color (3 8-bit planes)
  3958. #    pcxcmyk PCX file format, 4-bit chunky CMYK color
  3959. #    pbm    Portable Bitmap (plain format)
  3960. #    pbmraw    Portable Bitmap (raw format)
  3961. #    pgm    Portable Graymap (plain format)
  3962. #    pgmraw    Portable Graymap (raw format)
  3963. #    pgnm    Portable Graymap (plain format), optimizing to PBM if possible
  3964. #    pgnmraw    Portable Graymap (raw format), optimizing to PBM if possible
  3965. #    pnm    Portable Pixmap (plain format) (RGB), optimizing to PGM or PBM
  3966. #         if possible
  3967. #    pnmraw    Portable Pixmap (raw format) (RGB), optimizing to PGM or PBM
  3968. #         if possible
  3969. #    ppm    Portable Pixmap (plain format) (RGB)
  3970. #    ppmraw    Portable Pixmap (raw format) (RGB)
  3971. #    pkm    Portable inKmap (plain format) (4-bit CMYK => RGB)
  3972. #    pkmraw    Portable inKmap (raw format) (4-bit CMYK => RGB)
  3973. #    pngmono    Monochrome Portable Network Graphics (PNG)
  3974. #    pnggray    8-bit gray Portable Network Graphics (PNG)
  3975. #    png16    4-bit color Portable Network Graphics (PNG)
  3976. #    png256    8-bit color Portable Network Graphics (PNG)
  3977. #    png16m    24-bit color Portable Network Graphics (PNG)
  3978. #    psmono    PostScript (Level 1) monochrome image
  3979. #    psgray    PostScript (Level 1) 8-bit gray image
  3980. #    sgirgb    SGI RGB pixmap format
  3981. #    tiff12nc  TIFF 12-bit RGB, no compression
  3982. #    tiff24nc  TIFF 24-bit RGB, no compression (NeXT standard format)
  3983. #    tifflzw  TIFF LZW (tag = 5) (monochrome)
  3984. #    tiffpack  TIFF PackBits (tag = 32773) (monochrome)
  3985.  
  3986. # User-contributed drivers marked with * require hardware or software
  3987. # that is not available to Aladdin Enterprises.  Please contact the
  3988. # original contributors, not Aladdin Enterprises, if you have questions.
  3989. # Contact information appears in the driver entry below.
  3990. #
  3991. # Drivers marked with a + are maintained by Aladdin Enterprises with
  3992. # the assistance of users, since Aladdin Enterprises doesn't have access to
  3993. # the hardware for these either.
  3994.  
  3995. # If you add drivers, it would be nice if you kept each list
  3996. # in alphabetical order.
  3997.  
  3998. ###### ----------------------- End of catalog ----------------------- ######
  3999.  
  4000. # As noted in gs.mak, DEVICE_DEVS and DEVICE_DEVS1..15 select the devices
  4001. # that should be included in a given configuration.  By convention, these
  4002. # are used as follows.  Each of these must be limited to about 10 devices
  4003. # so as not to overflow the 120 character limit on MS-DOS command lines.
  4004. #    DEVICE_DEVS - the default device, and any display devices.
  4005. #    DEVICE_DEVS1 - additional display devices if needed.
  4006. #    DEVICE_DEVS2 - dot matrix printers.
  4007. #    DEVICE_DEVS3 - H-P monochrome printers.
  4008. #    DEVICE_DEVS4 - H-P color printers.
  4009. #    DEVICE_DEVS5 - additional H-P printers if needed.
  4010. #    DEVICE_DEVS6 - other ink-jet and laser printers.
  4011. #    DEVICE_DEVS7 - fax file formats.
  4012. #    DEVICE_DEVS8 - PCX file formats.
  4013. #    DEVICE_DEVS9 - PBM/PGM/PPM file formats.
  4014. #    DEVICE_DEVS10 - black-and-white TIFF file formats.
  4015. #    DEVICE_DEVS11 - BMP and color TIFF file formats.
  4016. #    DEVICE_DEVS12 - PostScript image and 'bit' file formats.
  4017. #    DEVICE_DEVS13 - PNG file formats.
  4018. #    DEVICE_DEVS14 - CGM, JPEG, and MIFF file formats.
  4019. #    DEVICE_DEVS15 - high-level (PostScript and PDF) file formats.
  4020. # Feel free to disregard this convention if it gets in your way.
  4021.  
  4022. # If you want to add a new device driver, the examples below should be
  4023. # enough of a guide to the correct form for the makefile rules.
  4024. # Note that all drivers other than displays must include page.dev in their
  4025. # dependencies and use $(SETPDEV) rather than $(SETDEV) in their rule bodies.
  4026.  
  4027. # All device drivers depend on the following:
  4028. GDEV=$(AK) $(ECHOGS_XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  4029.  
  4030. # "Printer" drivers depend on the following:
  4031. PDEVH=$(AK) $(gdevprn_h)
  4032.  
  4033. # Define the header files for device drivers.  Every header file used by
  4034. # more than one device driver family must be listed here.
  4035. gdev8bcm_h=gdev8bcm.h
  4036. gdevpccm_h=gdevpccm.h
  4037. gdevpcfb_h=gdevpcfb.h $(dos__h)
  4038. gdevpcl_h=gdevpcl.h
  4039. gdevsvga_h=gdevsvga.h
  4040. gdevx_h=gdevx.h
  4041.  
  4042. ###### ----------------------- Device support ----------------------- ######
  4043.  
  4044. # Provide a mapping between StandardEncoding and ISOLatin1Encoding.
  4045. gdevemap.$(OBJ): gdevemap.c $(AK) $(std_h)
  4046.  
  4047. # Implement dynamic color management for 8-bit mapped color displays.
  4048. gdev8bcm.$(OBJ): gdev8bcm.c $(AK) \
  4049.   $(gx_h) $(gxdevice_h) $(gdev8bcm_h)
  4050.  
  4051. ###### ------------------- MS-DOS display devices ------------------- ######
  4052.  
  4053. # There are really only three drivers: an EGA/VGA driver (4 bit-planes,
  4054. # plane-addressed), a SuperVGA driver (8 bit-planes, byte addressed),
  4055. # and a special driver for the S3 chip.
  4056.  
  4057. # PC display color mapping
  4058. gdevpccm.$(OBJ): gdevpccm.c $(AK) \
  4059.   $(gx_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  4060.  
  4061. ### ----------------------- EGA and VGA displays ----------------------- ###
  4062.  
  4063. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  4064. # or an empty string.
  4065.  
  4066. gdevegaa.$(OBJ): gdevegaa.asm
  4067.  
  4068. # NOTE: for direct frame buffer addressing under SCO Unix or Xenix,
  4069. # change gdevevga to gdevsco in the following line.  Also, since
  4070. # SCO's /bin/as does not support the "out" instructions, you must build
  4071. # the gnu assembler and have it on your path as "as".
  4072. EGAVGA=gdevevga.$(OBJ) gdevpcfb.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM)
  4073. #EGAVGA=gdevsco.$(OBJ) gdevpcfb.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM)
  4074.  
  4075. gdevevga.$(OBJ): gdevevga.c $(GDEV) $(memory__h) $(gdevpcfb_h)
  4076.     $(CCD) gdevevga.c
  4077.  
  4078. gdevsco.$(OBJ): gdevsco.c $(GDEV) $(memory__h) $(gdevpcfb_h)
  4079.  
  4080. # Common code for MS-DOS and SCO.
  4081. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(memory__h) $(gconfigv_h)\
  4082.  $(gdevpccm_h) $(gdevpcfb_h) $(gsparam_h)
  4083.     $(CCD) gdevpcfb.c
  4084.  
  4085. # The EGA/VGA family includes EGA and VGA.  Many SuperVGAs in 800x600,
  4086. # 16-color mode can share the same code; see the next section below.
  4087.  
  4088. ega.dev: $(EGAVGA)
  4089.     $(SETDEV) ega $(EGAVGA)
  4090.  
  4091. vga.dev: $(EGAVGA)
  4092.     $(SETDEV) vga $(EGAVGA)
  4093.  
  4094. ### ------------------------- SuperVGA displays ------------------------ ###
  4095.  
  4096. # SuperVGA displays in 16-color, 800x600 mode are really just slightly
  4097. # glorified VGA's, so we can handle them all with a single driver.
  4098. # The way to select them on the command line is with
  4099. #    -sDEVICE=svga16 -dDisplayMode=NNN
  4100. # where NNN is the display mode in decimal.  See use.txt for the modes
  4101. # for some popular display chipsets.
  4102.  
  4103. svga16.dev: $(EGAVGA)
  4104.     $(SETDEV) svga16 $(EGAVGA)
  4105.  
  4106. # More capable SuperVGAs have a wide variety of slightly differing
  4107. # interfaces, so we need a separate driver for each one.
  4108.  
  4109. SVGA=gdevsvga.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM)
  4110.  
  4111. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(memory__h) $(gconfigv_h)\
  4112.  $(gsparam_h) $(gxarith_h) $(gdevpccm_h) $(gdevpcfb_h) $(gdevsvga_h)
  4113.     $(CCD) gdevsvga.c
  4114.  
  4115. # The SuperVGA family includes: Avance Logic Inc., ATI Wonder, S3,
  4116. # Trident, Tseng ET3000/4000, and VESA.
  4117.  
  4118. ali.dev: $(SVGA)
  4119.     $(SETDEV) ali $(SVGA)
  4120.  
  4121. atiw.dev: $(SVGA)
  4122.     $(SETDEV) atiw $(SVGA)
  4123.  
  4124. tseng.dev: $(SVGA)
  4125.     $(SETDEV) tseng $(SVGA)
  4126.  
  4127. tvga.dev: $(SVGA)
  4128.     $(SETDEV) tvga $(SVGA)
  4129.  
  4130. vesa.dev: $(SVGA)
  4131.     $(SETDEV) vesa $(SVGA)
  4132.  
  4133. # The S3 driver doesn't share much code with the others.
  4134.  
  4135. s3vga_=gdevs3ga.$(OBJ) gdevsvga.$(OBJ) gdevpccm.$(OBJ)
  4136. s3vga.dev: $(SVGA) $(s3vga_)
  4137.     $(SETDEV) s3vga $(SVGA)
  4138.     $(ADDMOD) s3vga -obj $(s3vga_)
  4139.  
  4140. gdevs3ga.$(OBJ): gdevs3ga.c $(GDEV) $(gdevpcfb_h) $(gdevsvga_h)
  4141.     $(CCD) gdevs3ga.c
  4142.  
  4143. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  4144.  
  4145. cgaf.$(OBJ): $(BGIDIR)\cga.bgi
  4146.     $(BGIDIR)\bgiobj /F $(BGIDIR)\cga
  4147.  
  4148. egavgaf.$(OBJ): $(BGIDIR)\egavga.bgi
  4149.     $(BGIDIR)\bgiobj /F $(BGIDIR)\egavga
  4150.  
  4151. # Include egavgaf.$(OBJ) for debugging only.
  4152. bgi_=gdevbgi.$(OBJ) cgaf.$(OBJ)
  4153. bgi.dev: $(bgi_)
  4154.     $(SETDEV) bgi $(bgi_)
  4155.     $(ADDMOD) bgi -lib $(LIBDIR)\graphics
  4156.  
  4157. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE) $(gxxfont_h)
  4158.     $(CCC) -DBGI_LIB="$(BGIDIRSTR)" gdevbgi.c
  4159.  
  4160. ### ------------------- The Hercules Graphics display ------------------- ###
  4161.  
  4162. herc_=gdevherc.$(OBJ)
  4163. herc.dev: $(herc_)
  4164.     $(SETDEV) herc $(herc_)
  4165.  
  4166. gdevherc.$(OBJ): gdevherc.c $(GDEV) $(dos__h) $(gsmatrix_h) $(gxbitmap_h)
  4167.     $(CCC) gdevherc.c
  4168.  
  4169. ### ---------------------- The Private Eye display ---------------------- ###
  4170. ### Note: this driver was contributed by a user:                          ###
  4171. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  4172.  
  4173. pe_=gdevpe.$(OBJ)
  4174. pe.dev: $(pe_)
  4175.     $(SETDEV) pe $(pe_)
  4176.  
  4177. gdevpe.$(OBJ): gdevpe.c $(GDEV) $(memory__h)
  4178.  
  4179. ###### ----------------------- Other displays ------------------------ ######
  4180.  
  4181. ### -------------------- The MS-Windows 3.n DLL ------------------------- ###
  4182.  
  4183. gsdll_h=gsdll.h
  4184.  
  4185. gdevmswn_h=gdevmswn.h $(GDEV)\
  4186.  $(dos__h) $(memory__h) $(string__h) $(windows__h)\
  4187.  gp_mswin.h
  4188.  
  4189. gdevmswn.$(OBJ): gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  4190.  $(gsdll_h) $(gsparam_h) $(gdevpccm_h)
  4191.  
  4192. gdevmsxf.$(OBJ): gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) $(string__h)\
  4193.  $(gdevmswn_h) $(gsstruct_h) $(gsutil_h) $(gxxfont_h)
  4194.  
  4195. # An implementation using a DIB filled by an image device.
  4196. gdevwdib.$(OBJ): gdevwdib.c $(gdevmswn_h) $(gsdll_h) $(gxdevmem_h)
  4197.  
  4198. mswindll_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \
  4199.   gdevemap.$(OBJ) gdevpccm.$(OBJ)
  4200. mswindll.dev: $(mswindll_)
  4201.     $(SETDEV) mswindll $(mswindll_)
  4202.  
  4203. ### -------------------- The MS-Windows DDB 3.n printer ----------------- ###
  4204.  
  4205. mswinprn_=gdevwprn.$(OBJ) gdevmsxf.$(OBJ)
  4206. mswinprn.dev: $(mswinprn_)
  4207.     $(SETDEV) mswinprn $(mswinprn_)
  4208.  
  4209. gdevwprn.$(OBJ): gdevwprn.c $(gdevmswn_h) $(gp_h)
  4210.  
  4211. ### -------------------- The MS-Windows DIB 3.n printer ----------------- ###
  4212.  
  4213. mswinpr2_=gdevwpr2.$(OBJ)
  4214. mswinpr2.dev: $(mswinpr2_) page.dev
  4215.     $(SETPDEV) mswinpr2 $(mswinpr2_)
  4216.  
  4217. gdevwpr2.$(OBJ): gdevwpr2.c $(PDEVH) $(windows__h)\
  4218.  $(gdevpccm_h) $(gp_h) gp_mswin.h
  4219.  
  4220. ### ------------------ OS/2 Presentation Manager device ----------------- ###
  4221.  
  4222. os2pm_=gdevpm.$(OBJ) gdevpccm.$(OBJ)
  4223. os2pm.dev: $(os2pm_)
  4224.     $(SETDEV) os2pm $(os2pm_)
  4225.  
  4226. os2dll_=gdevpm.$(OBJ) gdevpccm.$(OBJ)
  4227. os2dll.dev: $(os2dll_)
  4228.     $(SETDEV) os2dll $(os2dll_)
  4229.  
  4230. gdevpm.$(OBJ): gdevpm.c $(string__h)\
  4231.  $(gp_h) $(gpcheck_h)\
  4232.  $(gsdll_h) $(gserrors_h) $(gsexit_h) $(gsparam_h)\
  4233.  $(gx_h) $(gxdevice_h) $(gxdevmem_h)\
  4234.  $(gdevpccm_h) gdevpm.h
  4235.  
  4236. ### --------------------------- The OS/2 printer ------------------------ ###
  4237.  
  4238. os2prn_=gdevos2p.$(OBJ)
  4239. os2prn.dev: $(os2prn_) page.dev
  4240.     $(SETPDEV) os2prn $(os2prn_)
  4241.  
  4242. os2prn.$(OBJ): os2prn.c $(gp_h)
  4243.  
  4244. ### -------------- The AT&T 3b1 Unixpc monochrome display --------------- ###
  4245. ### Note: this driver was contributed by a user: please contact           ###
  4246. ###       Andy Fyfe (andy@cs.caltech.edu) if you have questions.          ###
  4247.  
  4248. att3b1_=gdev3b1.$(OBJ)
  4249. att3b1.dev: $(att3b1_)
  4250.     $(SETDEV) att3b1 $(att3b1_)
  4251.  
  4252. gdev3b1.$(OBJ): gdev3b1.c $(GDEV)
  4253.  
  4254. ### ---------------------- Linux PC with vgalib ------------------------- ###
  4255. ### Note: these drivers were contributed by users.                        ###
  4256. ### For questions about the lvga256 driver, please contact                ###
  4257. ###       Ludger Kunz (ludger.kunz@fernuni-hagen.de).                     ###
  4258. ### For questions about the vgalib driver, please contact                 ###
  4259. ###       Erik Talvola (talvola@gnu.ai.mit.edu).                          ###
  4260.  
  4261. lvga256_=gdevl256.$(OBJ)
  4262. lvga256.dev: $(lvga256_)
  4263.     $(SETDEV) lvga256 $(lvga256_)
  4264.     $(ADDMOD) lvga256 -lib vga vgagl
  4265.  
  4266. gdevl256.$(OBJ): gdevl256.c $(GDEV)
  4267.  
  4268. vgalib_=gdevvglb.$(OBJ) gdevpccm.$(OBJ)
  4269. vgalib.dev: $(vgalib_)
  4270.     $(SETDEV) vgalib $(vgalib_)
  4271.     $(ADDMOD) vgalib -lib vga
  4272.  
  4273. gdevvglb.$(OBJ): gdevvglb.c $(GDEV) $(gdevpccm_h) $(gsparam_h)
  4274.  
  4275. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  4276. ### Note: this driver was contributed by a user: please contact          ###
  4277. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  4278.  
  4279. # This is implemented as a 'printer' device.
  4280. sonyfb_=gdevsnfb.$(OBJ)
  4281. sonyfb.dev: $(sonyfb_) page.dev
  4282.     $(SETPDEV) sonyfb $(sonyfb_)
  4283.  
  4284. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  4285.  
  4286. ### ------------------------ The SunView device ------------------------ ###
  4287. ### Note: this driver is maintained by a user: if you have questions,    ###
  4288. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  4289.  
  4290. sunview_=gdevsun.$(OBJ)
  4291. sunview.dev: $(sunview_)
  4292.     $(SETDEV) sunview $(sunview_)
  4293.     $(ADDMOD) sunview -lib suntool sunwindow pixrect
  4294.  
  4295. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(malloc__h)\
  4296.  $(gscdefs_h) $(gserrors_h) $(gsmatrix_h)
  4297.  
  4298. ### -------------------------- The X11 device -------------------------- ###
  4299.  
  4300. # Aladdin Enterprises does not support Ghostview.  For more information
  4301. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  4302.  
  4303. # See the main makefile for the definition of XLIBS.
  4304. x11_=gdevx.$(OBJ) gdevxini.$(OBJ) gdevxxf.$(OBJ) gdevemap.$(OBJ)
  4305. x11.dev: $(x11_)
  4306.     $(SETDEV) x11 $(x11_)
  4307.     $(ADDMOD) x11 -lib $(XLIBS)
  4308.  
  4309. # See the main makefile for the definition of XINCLUDE.
  4310. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  4311. gdevx.$(OBJ): gdevx.c $(GDEVX) $(math__h) $(memory__h) $(gsparam_h)
  4312.     $(CCC) $(XINCLUDE) gdevx.c
  4313.  
  4314. gdevxini.$(OBJ): gdevxini.c $(GDEVX) $(math__h) $(memory__h) $(gserrors_h)
  4315.     $(CCC) $(XINCLUDE) gdevxini.c
  4316.  
  4317. gdevxxf.$(OBJ): gdevxxf.c $(GDEVX) $(math__h) $(memory__h)\
  4318.  $(gsstruct_h) $(gsutil_h) $(gxxfont_h)
  4319.     $(CCC) $(XINCLUDE) gdevxxf.c
  4320.  
  4321. # Alternate X11-based devices to help debug other drivers.
  4322. # x11alpha pretends to have 4 bits of alpha channel.
  4323. # x11cmyk pretends to be a CMYK device with 1 bit each of C,M,Y,K.
  4324. # x11gray2 pretends to be a 2-bit gray-scale device.
  4325. # x11mono pretends to be a black-and-white device.
  4326. x11alt_=$(x11_) gdevxalt.$(OBJ)
  4327. x11alpha.dev: $(x11alt_)
  4328.     $(SETDEV) x11alpha $(x11alt_)
  4329.     $(ADDMOD) x11alpha -lib $(XLIBS)
  4330.  
  4331. x11cmyk.dev: $(x11alt_)
  4332.     $(SETDEV) x11cmyk $(x11alt_)
  4333.     $(ADDMOD) x11cmyk -lib $(XLIBS)
  4334.  
  4335. x11gray2.dev: $(x11alt_)
  4336.     $(SETDEV) x11gray2 $(x11alt_)
  4337.     $(ADDMOD) x11gray2 -lib $(XLIBS)
  4338.  
  4339. x11mono.dev: $(x11alt_)
  4340.     $(SETDEV) x11mono $(x11alt_)
  4341.     $(ADDMOD) x11mono -lib $(XLIBS)
  4342.  
  4343. gdevxalt.$(OBJ): gdevxalt.c $(GDEVX) $(math__h) $(memory__h) $(gsparam_h)
  4344.     $(CCC) $(XINCLUDE) gdevxalt.c
  4345.  
  4346. ### ------------------------- DEC sixel displays ------------------------ ###
  4347. ### Note: this driver was contributed by a user: please contact           ###
  4348. ###   Phil Keegstra (keegstra@tonga.gsfc.nasa.gov) if you have questions. ###
  4349.  
  4350. # This is a "printer" device, but it probably shouldn't be.
  4351. # I don't know why the implementor chose to do it this way.
  4352. sxlcrt_=gdevln03.$(OBJ)
  4353. sxlcrt.dev: $(sxlcrt_) page.dev
  4354.     $(SETPDEV) sxlcrt $(sxlcrt_)
  4355.  
  4356. ###### --------------- Memory-buffered printer devices --------------- ######
  4357.  
  4358. ### --------------------- The Apple printer devices --------------------- ###
  4359. ### Note: these drivers were contributed by users.                        ###
  4360. ###   If you have questions about the DMP driver, please contact          ###
  4361. ###    Mark Wedel (master@cats.ucsc.edu).                                ###
  4362. ###   If you have questions about the Imagewriter drivers, please contact ###
  4363. ###    Jonathan Luckey (luckey@rtfm.mlb.fl.us).                          ###
  4364. ###   If you have questions about the Imagewriter LQ driver, please       ###
  4365. ###    contact Scott Barker (barkers@cuug.ab.ca).                        ###
  4366.  
  4367. appledmp_=gdevadmp.$(OBJ)
  4368.  
  4369. gdevadmp.$(OBJ): gdevadmp.c $(PDEVH)
  4370.  
  4371. appledmp.dev: $(appledmp_) page.dev
  4372.     $(SETPDEV) appledmp $(appledmp_)
  4373.  
  4374. iwhi.dev: $(appledmp_) page.dev
  4375.     $(SETPDEV) iwhi $(appledmp_)
  4376.  
  4377. iwlo.dev: $(appledmp_) page.dev
  4378.     $(SETPDEV) iwlo $(appledmp_)
  4379.  
  4380. iwlq.dev: $(appledmp_) page.dev
  4381.     $(SETPDEV) iwlq $(appledmp_)
  4382.  
  4383. ### ------------ The Canon BubbleJet BJ10e and BJ200 devices ------------ ###
  4384.  
  4385. bj10e_=gdevbj10.$(OBJ)
  4386.  
  4387. bj10e.dev: $(bj10e_) page.dev
  4388.     $(SETPDEV) bj10e $(bj10e_)
  4389.  
  4390. bj200.dev: $(bj10e_) page.dev
  4391.     $(SETPDEV) bj200 $(bj10e_)
  4392.  
  4393. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  4394.  
  4395. ### ------------- The CalComp Raster Format ----------------------------- ###
  4396. ### Note: this driver was contributed by a user: please contact           ###
  4397. ###       Ernst Muellner (ernst.muellner@oenzl.siemens.de) if you have    ###
  4398. ###       questions.                                                      ###
  4399.  
  4400. ccr_=gdevccr.$(OBJ)
  4401. ccr.dev: $(ccr_) page.dev
  4402.     $(SETPDEV) ccr $(ccr_)
  4403.  
  4404. gdevccr.$(OBJ): gdevccr.c $(PDEVH)
  4405.  
  4406. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  4407.  
  4408. ### These are essentially the same device.
  4409. ### NOTE: printing at full resolution (300 DPI) requires a printer
  4410. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  4411. ### Note that the lj4dith driver is included with the H-P color printer
  4412. ###   drivers below.
  4413.  
  4414. HPPCL=gdevpcl.$(OBJ)
  4415. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  4416.  
  4417. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  4418.  
  4419. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  4420.  
  4421. deskjet.dev: $(HPMONO) page.dev
  4422.     $(SETPDEV) deskjet $(HPMONO)
  4423.  
  4424. djet500.dev: $(HPMONO) page.dev
  4425.     $(SETPDEV) djet500 $(HPMONO)
  4426.  
  4427. laserjet.dev: $(HPMONO) page.dev
  4428.     $(SETPDEV) laserjet $(HPMONO)
  4429.  
  4430. ljetplus.dev: $(HPMONO) page.dev
  4431.     $(SETPDEV) ljetplus $(HPMONO)
  4432.  
  4433. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  4434. ### IIIp, IIId, IIIsi, IId, and IIp. 
  4435.  
  4436. ljet2p.dev: $(HPMONO) page.dev
  4437.     $(SETPDEV) ljet2p $(HPMONO)
  4438.  
  4439. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  4440. ### IIIp, IIId, IIIsi.
  4441.  
  4442. ljet3.dev: $(HPMONO) page.dev
  4443.     $(SETPDEV) ljet3 $(HPMONO)
  4444.  
  4445. ### Selecting ljet3d also provides duplex printing capability.
  4446.  
  4447. ljet3d.dev: $(HPMONO) page.dev
  4448.     $(SETPDEV) ljet3d $(HPMONO)
  4449.  
  4450. ### Selecting ljet4 also provides Delta Row compression on LaserJet IV series.
  4451.  
  4452. ljet4.dev: $(HPMONO) page.dev
  4453.     $(SETPDEV) ljet4 $(HPMONO)
  4454.  
  4455. lp2563.dev: $(HPMONO) page.dev
  4456.     $(SETPDEV) lp2563 $(HPMONO)
  4457.  
  4458. oce9050.dev: $(HPMONO) page.dev
  4459.     $(SETPDEV) oce9050 $(HPMONO)
  4460.  
  4461. ### ------------------ The H-P LaserJet 5 and 6 devices ----------------- ###
  4462.  
  4463. ### These drivers use H-P's new PCL XL printer language, like H-P's
  4464. ### LaserJet 5 Enhanced driver for MS Windows.  We don't recommend using
  4465. ### them:
  4466. ###    - If you have a LJ5L, which isn't a "real" LaserJet 5, use the
  4467. ###    ljet4 driver instead.  (The lj5 drivers won't work.)
  4468. ###    - If you have any other model of LJ 5 or 6, use the pxlmono
  4469. ###    driver, which often produces much more compact output.
  4470.  
  4471. gdevpxat_h=gdevpxat.h
  4472. gdevpxen_h=gdevpxen.h
  4473. gdevpxop_h=gdevpxop.h
  4474.  
  4475. ljet5_=gdevlj56.$(OBJ) $(HPPCL)
  4476. lj5mono.dev: $(ljet5_) page.dev
  4477.     $(SETPDEV) lj5mono $(ljet5_)
  4478.  
  4479. lj5gray.dev: $(ljet5_) page.dev
  4480.     $(SETPDEV) lj5gray $(ljet5_)
  4481.  
  4482. gdevlj56.$(OBJ): gdevlj56.c $(PDEVH) $(gdevpcl_h)\
  4483.  $(gdevpxat_h) $(gdevpxen_h) $(gdevpxop_h)
  4484.  
  4485. ### The H-P DeskJet, PaintJet, and DesignJet family color printer devices.###
  4486. ### Note: there are two different 500C drivers, both contributed by users.###
  4487. ###   If you have questions about the djet500c driver,                    ###
  4488. ###       please contact AKayser@et.tudelft.nl.                           ###
  4489. ###   If you have questions about the cdj* drivers,                       ###
  4490. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  4491. ###   If you have questions about the dnj560c driver,                     ###
  4492. ###       please contact koert@zen.cais.com.                              ###
  4493. ###   If you have questions about the lj4dith driver,                     ###
  4494. ###       please contact Eckhard.Rueggeberg@ts.go.dlr.de.                 ###
  4495. ###   If you have questions about the BJC600/BJC4000, BJC800, or ESCP     ###
  4496. ###       drivers, please contact Yves.Arrouye@imag.fr.                   ###
  4497.  
  4498. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  4499.  
  4500. cdeskjet.dev: $(cdeskjet_) page.dev
  4501.     $(SETPDEV) cdeskjet $(cdeskjet_)
  4502.  
  4503. cdjcolor.dev: $(cdeskjet_) page.dev
  4504.     $(SETPDEV) cdjcolor $(cdeskjet_)
  4505.  
  4506. cdjmono.dev: $(cdeskjet_) page.dev
  4507.     $(SETPDEV) cdjmono $(cdeskjet_)
  4508.  
  4509. cdj500.dev: $(cdeskjet_) page.dev
  4510.     $(SETPDEV) cdj500 $(cdeskjet_)
  4511.  
  4512. cdj550.dev: $(cdeskjet_) page.dev
  4513.     $(SETPDEV) cdj550 $(cdeskjet_)
  4514.  
  4515. declj250.dev: $(cdeskjet_) page.dev
  4516.     $(SETPDEV) declj250 $(cdeskjet_)
  4517.  
  4518. dnj650c.dev: $(cdeskjet_) page.dev
  4519.     $(SETPDEV) dnj650c $(cdeskjet_)
  4520.  
  4521. lj4dith.dev: $(cdeskjet_) page.dev
  4522.     $(SETPDEV) lj4dith $(cdeskjet_)
  4523.  
  4524. pj.dev: $(cdeskjet_) page.dev
  4525.     $(SETPDEV) pj $(cdeskjet_)
  4526.  
  4527. pjxl.dev: $(cdeskjet_) page.dev
  4528.     $(SETPDEV) pjxl $(cdeskjet_)
  4529.  
  4530. pjxl300.dev: $(cdeskjet_) page.dev
  4531.     $(SETPDEV) pjxl300 $(cdeskjet_)
  4532.  
  4533. # Note: the BJC600 driver also works for the BJC4000.
  4534. bjc600.dev: $(cdeskjet_) page.dev
  4535.     $(SETPDEV) bjc600 $(cdeskjet_)
  4536.  
  4537. bjc800.dev: $(cdeskjet_) page.dev
  4538.     $(SETPDEV) bjc800 $(cdeskjet_)
  4539.  
  4540. escp.dev: $(cdeskjet_) page.dev
  4541.     $(SETPDEV) escp $(cdeskjet_)
  4542.  
  4543. # NB: you can also customise the build if required, using
  4544. # -DBitsPerPixel=<number> if you wish the default to be other than 24
  4545. # for the generic drivers (cdj500, cdj550, pjxl300, pjtest, pjxltest).
  4546. gdevcdj.$(OBJ): gdevcdj.c $(std_h) $(PDEVH) gdevbjc.h\
  4547.  $(gsparam_h) $(gsstate_h) $(gxlum_h)\
  4548.  $(gdevpcl_h)
  4549.  
  4550. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  4551. djet500c.dev: $(djet500c_) page.dev
  4552.     $(SETPDEV) djet500c $(djet500c_)
  4553.  
  4554. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(malloc__h) $(gdevpcl_h)
  4555.  
  4556. ### -------------------- The Mitsubishi CP50 printer -------------------- ###
  4557. ### Note: this driver was contributed by a user: please contact           ###
  4558. ###       Michael Hu (michael@ximage.com) if you have questions.          ###
  4559.  
  4560. cp50_=gdevcp50.$(OBJ)
  4561. cp50.dev: $(cp50_) page.dev
  4562.     $(SETPDEV) cp50 $(cp50_)
  4563.  
  4564. gdevcp50.$(OBJ): gdevcp50.c $(PDEVH)
  4565.  
  4566. ### ----------------- The generic Epson printer device ----------------- ###
  4567. ### Note: most of this code was contributed by users.  Please contact    ###
  4568. ###       the following people if you have questions:                    ###
  4569. ###   eps9mid - Guenther Thomsen (thomsen@cs.tu-berlin.de)               ###
  4570. ###   eps9high - David Wexelblat (dwex@mtgzfs3.att.com)                  ###
  4571. ###   ibmpro - James W. Birdsall (jwbirdsa@picarefy.picarefy.com)        ###
  4572.  
  4573. epson_=gdevepsn.$(OBJ)
  4574.  
  4575. epson.dev: $(epson_) page.dev
  4576.     $(SETPDEV) epson $(epson_)
  4577.  
  4578. eps9mid.dev: $(epson_) page.dev
  4579.     $(SETPDEV) eps9mid $(epson_)
  4580.  
  4581. eps9high.dev: $(epson_) page.dev
  4582.     $(SETPDEV) eps9high $(epson_)
  4583.  
  4584. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  4585.  
  4586. ### ----------------- The IBM Proprinter printer device ---------------- ###
  4587.  
  4588. ibmpro.dev: $(epson_) page.dev
  4589.     $(SETPDEV) ibmpro $(epson_)
  4590.  
  4591. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  4592. ### Note: this driver was contributed by users: please contact           ###
  4593. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  4594.  
  4595. epsonc_=gdevepsc.$(OBJ)
  4596. epsonc.dev: $(epsonc_) page.dev
  4597.     $(SETPDEV) epsonc $(epsonc_)
  4598.  
  4599. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH)
  4600.  
  4601. ### ------------- The Epson ESC/P 2 language printer devices ------------- ###
  4602. ### Note: these drivers were contributed by users.                         ###
  4603. ### For questions about the Stylus 800 and AP3250 drivers, please contact  ###
  4604. ###        Richard Brown (rab@tauon.ph.unimelb.edu.au).                    ###
  4605. ### For questions about the Stylus Color drivers, please contact           ###
  4606. ###        Gunther Hess (gunther@elmos.de).                                ###
  4607.  
  4608. ESCP2=gdevescp.$(OBJ)
  4609.  
  4610. gdevescp.$(OBJ): gdevescp.c $(PDEVH)
  4611.  
  4612. ap3250.dev: $(ESCP2) page.dev
  4613.     $(SETPDEV) ap3250 $(ESCP2)
  4614.  
  4615. st800.dev: $(ESCP2) page.dev
  4616.     $(SETPDEV) st800 $(ESCP2)
  4617.  
  4618. stcolor1_=gdevstc.$(OBJ) gdevstc1.$(OBJ) gdevstc2.$(OBJ)
  4619. stcolor2_=gdevstc3.$(OBJ) gdevstc4.$(OBJ)
  4620. stcolor.dev: $(stcolor1_) $(stcolor2_) page.dev
  4621.     $(SETPDEV) stcolor $(stcolor1_)
  4622.     $(ADDMOD) stcolor -obj $(stcolor2_)
  4623.  
  4624. gdevstc.$(OBJ): gdevstc.c gdevstc.h $(PDEVH)
  4625.  
  4626. gdevstc1.$(OBJ): gdevstc1.c gdevstc.h $(PDEVH)
  4627.  
  4628. gdevstc2.$(OBJ): gdevstc2.c gdevstc.h $(PDEVH)
  4629.  
  4630. gdevstc3.$(OBJ): gdevstc3.c gdevstc.h $(PDEVH)
  4631.  
  4632. gdevstc4.$(OBJ): gdevstc4.c gdevstc.h $(PDEVH)
  4633.  
  4634. ### --------------- Ugly/Update -> Unified Printer Driver ---------------- ###
  4635. ### For questions about this driver, please contact:                       ###
  4636. ###        Gunther Hess (gunther@elmos.de)                                 ###
  4637.  
  4638. uniprint_=gdevupd.$(OBJ)
  4639. uniprint.dev: $(uniprint_) page.dev
  4640.     $(SETPDEV) uniprint $(uniprint_)
  4641.  
  4642. gdevupd.$(OBJ): gdevupd.c $(PDEVH) $(gsparam_h)
  4643.  
  4644. ### -------------- cdj850 - HP 850c Driver under development ------------- ###
  4645. ### Since this driver is in the development-phase it is not distributed    ###
  4646. ### with ghostscript, but it is available via anonymous ftp from:          ###
  4647. ###                        ftp://bonk.ethz.ch                              ###
  4648. ### For questions about this driver, please contact:                       ###
  4649. ###       Uli Wortmann (E-Mail address inside the driver-package)          ###
  4650.  
  4651. cdeskjet8_=gdevcd8.$(OBJ) $(HPPCL)
  4652.  
  4653. cdj850.dev: $(cdeskjet8_) page.dev
  4654.     $(SETPDEV) cdj850 $(cdeskjet8_)
  4655.  
  4656. ### ------------ The H-P PaintJet color printer device ----------------- ###
  4657. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  4658. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  4659. ### If you have questions about the XL, please contact Rob Reiss         ###
  4660. ###       (rob@moray.berkeley.edu).                                      ###
  4661.  
  4662. PJET=gdevpjet.$(OBJ) $(HPPCL)
  4663.  
  4664. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  4665.  
  4666. lj250.dev: $(PJET) page.dev
  4667.     $(SETPDEV) lj250 $(PJET)
  4668.  
  4669. paintjet.dev: $(PJET) page.dev
  4670.     $(SETPDEV) paintjet $(PJET)
  4671.  
  4672. pjetxl.dev: $(PJET) page.dev
  4673.     $(SETPDEV) pjetxl $(PJET)
  4674.  
  4675. ### -------------- Imagen ImPress Laser Printer device ----------------- ###
  4676. ### Note: this driver was contributed by a user: please contact          ###
  4677. ###       Alan Millar (AMillar@bolis.sf-bay.org) if you have questions.  ###
  4678. ### Set USE_BYTE_STREAM if using parallel interface;                     ###
  4679. ### Don't set it if using 'ipr' spooler (default).                       ###
  4680. ### You may also add -DA4 if needed for A4 paper.             ###
  4681.  
  4682. imagen_=gdevimgn.$(OBJ)
  4683. imagen.dev: $(imagen_) page.dev
  4684.     $(SETPDEV) imagen $(imagen_)
  4685.  
  4686. gdevimgn.$(OBJ): gdevimgn.c $(PDEVH)
  4687.     $(CCC) gdevimgn.c            # for ipr spooler
  4688. #    $(CCC) -DUSE_BYTE_STREAM gdevimgn.c    # for parallel
  4689.  
  4690. ### ------- The IBM 3852 JetPrinter color inkjet printer device -------- ###
  4691. ### Note: this driver was contributed by users: please contact           ###
  4692. ###       Kevin Gift (kgift@draper.com) if you have questions.           ###
  4693. ### Note that the paper size that can be addressed by the graphics mode  ###
  4694. ###   used in this driver is fixed at 7-1/2 inches wide (the printable   ###
  4695. ###   width of the jetprinter itself.)                                   ###
  4696.  
  4697. jetp3852_=gdev3852.$(OBJ)
  4698. jetp3852.dev: $(jetp3852_) page.dev
  4699.     $(SETPDEV) jetp3852 $(jetp3852_)
  4700.  
  4701. gdev3852.$(OBJ): gdev3852.c $(PDEVH) $(gdevpcl_h)
  4702.  
  4703. ### ---------- The Canon LBP-8II and LIPS III printer devices ---------- ###
  4704. ### Note: these drivers were contributed by users.                       ###
  4705. ### For questions about these drivers, please contact                    ###
  4706. ###       Lauri Paatero, lauri.paatero@paatero.pp.fi                     ###
  4707.  
  4708. lbp8_=gdevlbp8.$(OBJ)
  4709. lbp8.dev: $(lbp8_) page.dev
  4710.     $(SETPDEV) lbp8 $(lbp8_)
  4711.  
  4712. lips3.dev: $(lbp8_) page.dev
  4713.     $(SETPDEV) lips3 $(lbp8_)
  4714.  
  4715. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  4716.  
  4717. ### ----------- The DEC LN03/LA50/LA70/LA75 printer devices ------------ ###
  4718. ### Note: this driver was contributed by users: please contact           ###
  4719. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  4720. ### For questions about LA50 and LA75, please contact                    ###
  4721. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                      ###
  4722. ### For questions about the LA70, please contact                         ###
  4723. ###       Bruce Lowekamp (lowekamp@csugrad.cs.vt.edu).                   ###
  4724. ### For questions about the LA75plus, please contact                     ###
  4725. ###       Andre' Beck (Andre_Beck@IRS.Inf.TU-Dresden.de).                ###
  4726.  
  4727. ln03_=gdevln03.$(OBJ)
  4728. ln03.dev: $(ln03_) page.dev
  4729.     $(SETPDEV) ln03 $(ln03_)
  4730.  
  4731. la50.dev: $(ln03_) page.dev
  4732.     $(SETPDEV) la50 $(ln03_)
  4733.  
  4734. la70.dev: $(ln03_) page.dev
  4735.     $(SETPDEV) la70 $(ln03_)
  4736.  
  4737. la75.dev: $(ln03_) page.dev
  4738.     $(SETPDEV) la75 $(ln03_)
  4739.  
  4740. la75plus.dev: $(ln03_) page.dev
  4741.     $(SETPDEV) la75plus $(ln03_)
  4742.  
  4743. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  4744.  
  4745. # LA70 driver with low-resolution text enhancement.
  4746.  
  4747. la70t_=gdevla7t.$(OBJ)
  4748. la70t.dev: $(la70t_) page.dev
  4749.     $(SETPDEV) la70t $(la70t_)
  4750.  
  4751. gdevla7t.$(OBJ): gdevla7t.c $(PDEVH)
  4752.  
  4753. ### -------------- The Epson LP-8000 laser printer device -------------- ###
  4754. ### Note: this driver was contributed by a user: please contact Oleg     ###
  4755. ###       Oleg Fat'yanov <faty1@rlem.titech.ac.jp> if you have questions.###
  4756.  
  4757. lp8000_=gdevlp8k.$(OBJ)
  4758. lp8000.dev: $(lp8000_) page.dev
  4759.     $(SETPDEV) lp8000 $(lp8000_)
  4760.  
  4761. gdevlp8k.$(OBJ): gdevlp8k.c $(PDEVH)
  4762.  
  4763. ### -------------- The C.Itoh M8510 printer device --------------------- ###
  4764. ### Note: this driver was contributed by a user: please contact Bob      ###
  4765. ###       Smith <bob@snuffy.penfield.ny.us> if you have questions.       ###
  4766.  
  4767. m8510_=gdev8510.$(OBJ)
  4768. m8510.dev: $(m8510_) page.dev
  4769.     $(SETPDEV) m8510 $(m8510_)
  4770.  
  4771. gdev8510.$(OBJ): gdev8510.c $(PDEVH)
  4772.  
  4773. ### --------------------- The NEC P6 family devices -------------------- ###
  4774.  
  4775. necp6_=gdevnp6.$(OBJ)
  4776. necp6.dev: $(necp6_) page.dev
  4777.     $(SETPDEV) necp6 $(necp6_)
  4778.  
  4779. gdevnp6.$(OBJ): gdevnp6.c $(PDEVH)
  4780.  
  4781. ### ----------------- The Okidata MicroLine 182 device ----------------- ###
  4782. ### Note: this driver was contributed by a user: please contact          ###
  4783. ###       Maarten Koning (smeg@bnr.ca) if you have questions.            ###
  4784.  
  4785. oki182_=gdevo182.$(OBJ)
  4786. oki182.dev: $(oki182_) page.dev
  4787.     $(SETPDEV) oki182 $(oki182_)
  4788.  
  4789. gdevo182.$(OBJ): gdevo182.c $(PDEVH)
  4790.  
  4791. ### ------------- The Okidata IBM compatible printer device ------------ ###
  4792. ### Note: this driver was contributed by a user: please contact          ###
  4793. ###       Charles Mack (chasm@netcom.com) if you have questions.         ###
  4794.  
  4795. okiibm_=gdevokii.$(OBJ)
  4796. okiibm.dev: $(okiibm_) page.dev
  4797.     $(SETPDEV) okiibm $(okiibm_)
  4798.  
  4799. gdevokii.$(OBJ): gdevokii.c $(PDEVH)
  4800.  
  4801. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  4802. ### Note: this driver was contributed by users:                          ###
  4803. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  4804.  
  4805. r4081_=gdev4081.$(OBJ)
  4806. r4081.dev: $(r4081_) page.dev
  4807.     $(SETPDEV) r4081 $(r4081_)
  4808.  
  4809.  
  4810. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  4811.  
  4812. ### -------------------- Sony NWP533 printer device -------------------- ###
  4813. ### Note: this driver was contributed by a user: please contact Tero     ###
  4814. ###       Kivinen (kivinen@joker.cs.hut.fi) if you have questions.       ###
  4815.  
  4816. nwp533_=gdevn533.$(OBJ)
  4817. nwp533.dev: $(nwp533_) page.dev
  4818.     $(SETPDEV) nwp533 $(nwp533_)
  4819.  
  4820. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  4821.  
  4822. ### ------------------------- The SPARCprinter ------------------------- ###
  4823. ### Note: this driver was contributed by users: please contact Martin    ###
  4824. ###       Schulte (schulte@thp.uni-koeln.de) if you have questions.      ###
  4825. ###       He would also like to hear from anyone using the driver.       ###
  4826. ### Please consult the source code for additional documentation.         ###
  4827.  
  4828. sparc_=gdevsppr.$(OBJ)
  4829. sparc.dev: $(sparc_) page.dev
  4830.     $(SETPDEV) sparc $(sparc_)
  4831.  
  4832. gdevsppr.$(OBJ): gdevsppr.c $(PDEVH)
  4833.  
  4834. ### ----------------- The StarJet SJ48 device -------------------------- ###
  4835. ### Note: this driver was contributed by a user: if you have questions,  ###
  4836. ###                          .                                          ###
  4837. ###       please contact Mats Akerblom (f86ma@dd.chalmers.se).           ###
  4838.  
  4839. sj48_=gdevsj48.$(OBJ)
  4840. sj48.dev: $(sj48_) page.dev
  4841.     $(SETPDEV) sj48 $(sj48_)
  4842.  
  4843. gdevsj48.$(OBJ): gdevsj48.c $(PDEVH)
  4844.  
  4845. ### ----------------- Tektronix 4396d color printer -------------------- ###
  4846. ### Note: this driver was contributed by a user: please contact          ###
  4847. ###       Karl Hakimian (hakimian@haney.eecs.wsu.edu)                    ###
  4848. ###       if you have questions.                                         ###
  4849.  
  4850. t4693d_=gdev4693.$(OBJ)
  4851. t4693d2.dev: $(t4693d_) page.dev
  4852.     $(SETPDEV) t4693d2 $(t4693d_)
  4853.  
  4854. t4693d4.dev: $(t4693d_) page.dev
  4855.     $(SETPDEV) t4693d4 $(t4693d_)
  4856.  
  4857. t4693d8.dev: $(t4693d_) page.dev
  4858.     $(SETPDEV) t4693d8 $(t4693d_)
  4859.  
  4860. gdev4693.$(OBJ): gdev4693.c $(PDEVH)
  4861.  
  4862. ### -------------------- Tektronix ink-jet printers -------------------- ###
  4863. ### Note: this driver was contributed by a user: please contact          ###
  4864. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  4865.  
  4866. tek4696_=gdevtknk.$(OBJ)
  4867. tek4696.dev: $(tek4696_) page.dev
  4868.     $(SETPDEV) tek4696 $(tek4696_)
  4869.  
  4870. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH) $(malloc__h)
  4871.  
  4872. ### ----------------- The Xerox XES printer device --------------------- ###
  4873. ### Note: this driver was contributed by users: please contact           ###
  4874. ###       Peter Flass (flass@lbdrscs.bitnet) if you have questions.      ###
  4875.  
  4876. xes_=gdevxes.$(OBJ)
  4877. xes.dev: $(xes_) page.dev
  4878.     $(SETPDEV) xes $(xes_)
  4879.  
  4880. gdevxes.$(OBJ): gdevxes.c $(PDEVH)
  4881.  
  4882. ###### ------------------------- Fax devices ------------------------- ######
  4883.  
  4884. ### --------------- Generic PostScript system compatible fax ------------ ###
  4885.  
  4886. # This code doesn't work yet.  Don't even think about using it.
  4887.  
  4888. PSFAX=gdevpfax.$(OBJ)
  4889.  
  4890. psfax_=$(PSFAX)
  4891. psfax.dev: $(psfax_) page.dev
  4892.     $(SETPDEV) psfax $(psfax_)
  4893.     $(ADDMOD) psfax -iodev Fax
  4894.  
  4895. gdevpfax.$(OBJ): gdevpfax.c $(PDEVH) $(gsparam_h) $(gxiodev_h)
  4896.  
  4897. ### ------------------------- The DigiFAX device ------------------------ ###
  4898. ###    This driver outputs images in a format suitable for use with       ###
  4899. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  4900. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  4901. ### Note: this driver was contributed by a user: please contact           ###
  4902. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  4903.  
  4904. dfax_=gdevdfax.$(OBJ) gdevtfax.$(OBJ)
  4905.  
  4906. dfaxlow.dev: $(dfax_) page.dev
  4907.     $(SETPDEV) dfaxlow $(dfax_)
  4908.     $(ADDMOD) dfaxlow -include cfe
  4909.  
  4910. dfaxhigh.dev: $(dfax_) page.dev
  4911.     $(SETPDEV) dfaxhigh $(dfax_)
  4912.     $(ADDMOD) dfaxhigh -include cfe
  4913.  
  4914. gdevdfax.$(OBJ): gdevdfax.c $(PDEVH) $(scfx_h) $(strimpl_h)
  4915.  
  4916. ### --------------See under TIFF below for fax-format TIFF -------------- ###
  4917.  
  4918. ###### ------------------- High-level file formats ------------------- ######
  4919.  
  4920. # Support for PostScript and PDF
  4921.  
  4922. gdevpsdf_h=gdevpsdf.h $(gdevvec_h) $(strimpl_h)
  4923. gdevpstr_h=gdevpstr.h
  4924.  
  4925. gdevpsdf.$(OBJ): gdevpsdf.c $(stdio__h) $(string__h)\
  4926.  $(gserror_h) $(gserrors_h) $(gsmemory_h) $(gsparam_h) $(gstypes_h)\
  4927.  $(gxdevice_h)\
  4928.  $(scfx_h) $(slzwx_h) $(srlx_h) $(strimpl_h)\
  4929.  $(gdevpsdf_h) $(gdevpstr_h)
  4930.  
  4931. gdevpstr.$(OBJ): gdevpstr.c $(math__h) $(stdio__h) $(string__h)\
  4932.  $(gdevpstr_h) $(stream_h)
  4933.  
  4934. # PostScript and EPS writers
  4935.  
  4936. pswrite1_=gdevps.$(OBJ) gdevpsdf.$(OBJ) gdevpstr.$(OBJ)
  4937. pswrite2_=scantab.$(OBJ) sfilter2.$(OBJ)
  4938. pswrite_=$(pswrite1_) $(pswrite2_)
  4939. epswrite.dev: $(ECHOGS_XE) $(pswrite_) vector.dev
  4940.     $(SETDEV) epswrite $(pswrite1_)
  4941.     $(ADDMOD) epswrite $(pswrite2_)
  4942.     $(ADDMOD) epswrite -include vector
  4943.  
  4944. pswrite.dev: $(ECHOGS_XE) $(pswrite_) vector.dev
  4945.     $(SETDEV) pswrite $(pswrite1_)
  4946.     $(ADDMOD) pswrite $(pswrite2_)
  4947.     $(ADDMOD) pswrite -include vector
  4948.  
  4949. gdevps.$(OBJ): gdevps.c $(GDEV) $(math__h) $(time__h)\
  4950.  $(gscdefs_h) $(gscspace_h) $(gsparam_h) $(gsiparam_h) $(gsmatrix_h)\
  4951.  $(gxdcolor_h)\
  4952.  $(sa85x_h) $(strimpl_h)\
  4953.  $(gdevpsdf_h) $(gdevpstr_h)
  4954.  
  4955. # PDF writer
  4956. # Note that gs_pdfwr.ps will only actually be loaded if the configuration
  4957. # includes a PostScript interpreter.
  4958.  
  4959. pdfwrite1_=gdevpdf.$(OBJ) gdevpdfi.$(OBJ) gdevpdfm.$(OBJ)
  4960. pdfwrite2_=gdevpdfp.$(OBJ) gdevpdft.$(OBJ) gdevpsdf.$(OBJ) gdevpstr.$(OBJ)
  4961. pdfwrite3_=gsflip.$(OBJ) scantab.$(OBJ) sfilter2.$(OBJ) sstring.$(OBJ)
  4962. pdfwrite_=$(pdfwrite1_) $(pdfwrite2_) $(pdfwrite3_)
  4963. pdfwrite.dev: $(ECHOGS_XE) $(pdfwrite_) \
  4964.   cmyklib.dev cfe.dev dcte.dev lzwe.dev rle.dev vector.dev
  4965.     $(SETDEV) pdfwrite $(pdfwrite1_)
  4966.     $(ADDMOD) pdfwrite $(pdfwrite2_)
  4967.     $(ADDMOD) pdfwrite $(pdfwrite3_)
  4968.     $(ADDMOD) pdfwrite -ps gs_pdfwr
  4969.     $(ADDMOD) pdfwrite -include cmyklib cfe dcte lzwe rle vector
  4970.  
  4971. gdevpdfx_h=gdevpdfx.h $(gsparam_h) $(gxdevice_h) $(gxline_h) $(stream_h)\
  4972.  $(gdevpsdf_h) $(gdevpstr_h)
  4973.  
  4974. gdevpdf.$(OBJ): gdevpdf.c $(math__h) $(string__h) $(time__h) $(gp_h) \
  4975.   $(gdevpdfx_h) $(gscdefs_h) $(gserrors_h) \
  4976.   $(gx_h) $(gxdevice_h) $(gxfixed_h) $(gxistate_h) $(gxpaint_h) \
  4977.   $(gzcpath_h) $(gzpath_h) $(scfx_h) $(strimpl_h)
  4978.  
  4979. gdevpdfi.$(OBJ): gdevpdfi.c $(memory__h) $(gx_h) \
  4980.   $(gdevpdfx_h) $(gserrors_h) $(gsflip_h) $(gxcspace_h) $(gxistate_h) \
  4981.   $(sa85x_h) $(scfx_h) $(srlx_h) $(strimpl_h)
  4982.  
  4983. gdevpdfm.$(OBJ): gdevpdfm.c $(memory__h) $(string__h) $(gx_h) \
  4984.   $(gdevpdfx_h) $(gserrors_h) $(gsutil_h) $(scanchar_h)
  4985.  
  4986. gdevpdfp.$(OBJ): gdevpdfp.c $(gx_h)\
  4987.  $(gdevpdfx_h) $(gserrors_h)
  4988.  
  4989. gdevpdft.$(OBJ): gdevpdft.c $(string__h) $(gx_h)\
  4990.  $(gdevpdfx_h) $(gserrors_h) $(gsutil_h)\
  4991.  $(sstring_h) $(strimpl_h)
  4992.  
  4993. # High-level PCL XL writer
  4994.  
  4995. pxl_=gdevpx.$(OBJ)
  4996. pxlmono.dev: $(pxl_) $(GDEV) vector.dev
  4997.     $(SETDEV) pxlmono $(pxl_)
  4998.     $(ADDMOD) pxlmono -include vector
  4999.  
  5000. pxlcolor.dev: $(pxl_) $(GDEV) vector.dev
  5001.     $(SETDEV) pxlcolor $(pxl_)
  5002.     $(ADDMOD) pxlcolor -include vector
  5003.  
  5004. gdevpx.$(OBJ): gdevpx.c $(math__h) $(memory__h) $(string__h)\
  5005.  $(gx_h) $(gsccolor_h) $(gsdcolor_h) $(gserrors_h)\
  5006.  $(gxcspace_h) $(gxdevice_h) $(gxpath_h)\
  5007.  $(gdevpxat_h) $(gdevpxen_h) $(gdevpxop_h) $(gdevvec_h)\
  5008.  $(srlx_h) $(strimpl_h)
  5009.  
  5010. ###### --------------------- Raster file formats --------------------- ######
  5011.  
  5012. ### --------------------- The "plain bits" devices ---------------------- ###
  5013.  
  5014. bit_=gdevbit.$(OBJ)
  5015.  
  5016. bit.dev: $(bit_) page.dev
  5017.     $(SETPDEV) bit $(bit_)
  5018.  
  5019. bitrgb.dev: $(bit_) page.dev
  5020.     $(SETPDEV) bitrgb $(bit_)
  5021.  
  5022. bitcmyk.dev: $(bit_) page.dev
  5023.     $(SETPDEV) bitcmyk $(bit_)
  5024.  
  5025. gdevbit.$(OBJ): gdevbit.c $(PDEVH) $(gsparam_h) $(gxlum_h)
  5026.  
  5027. ### ------------------------- .BMP file formats ------------------------- ###
  5028.  
  5029. bmp_=gdevbmp.$(OBJ) gdevpccm.$(OBJ)
  5030.  
  5031. gdevbmp.$(OBJ): gdevbmp.c $(PDEVH) $(gdevpccm_h)
  5032.  
  5033. bmpmono.dev: $(bmp_) page.dev
  5034.     $(SETPDEV) bmpmono $(bmp_)
  5035.  
  5036. bmp16.dev: $(bmp_) page.dev
  5037.     $(SETPDEV) bmp16 $(bmp_)
  5038.  
  5039. bmp256.dev: $(bmp_) page.dev
  5040.     $(SETPDEV) bmp256 $(bmp_)
  5041.  
  5042. bmp16m.dev: $(bmp_) page.dev
  5043.     $(SETPDEV) bmp16m $(bmp_)
  5044.  
  5045. ### -------------------------- CGM file format ------------------------- ###
  5046. ### This driver is under development.  Use at your own risk.             ###
  5047. ### The output is very low-level, consisting only of rectangles and      ###
  5048. ### cell arrays.                                                         ###
  5049.  
  5050. cgm_=gdevcgm.$(OBJ) gdevcgml.$(OBJ)
  5051.  
  5052. gdevcgml_h=gdevcgml.h
  5053. gdevcgmx_h=gdevcgmx.h $(gdevcgml_h)
  5054.  
  5055. gdevcgm.$(OBJ): gdevcgm.c $(GDEV) $(memory__h)\
  5056.  $(gsparam_h) $(gdevpccm_h) $(gdevcgml_h)
  5057.  
  5058. gdevcgml.$(OBJ): gdevcgml.c $(memory__h) $(stdio__h)\
  5059.  $(gdevcgmx_h)
  5060.  
  5061. cgmmono.dev: $(cgm_)
  5062.     $(SETDEV) cgmmono $(cgm_)
  5063.  
  5064. cgm8.dev: $(cgm_)
  5065.     $(SETDEV) cgm8 $(cgm_)
  5066.  
  5067. cgm24.dev: $(cgm_)
  5068.     $(SETDEV) cgm24 $(cgm_)
  5069.  
  5070. ### -------------------- The CIF file format for VLSI ------------------ ###
  5071. ### Note: this driver was contributed by a user: please contact          ###
  5072. ###       Frederic Petrot (petrot@masi.ibp.fr) if you have questions.    ###
  5073.  
  5074. cif_=gdevcif.$(OBJ)
  5075. cif.dev: $(cif_) page.dev
  5076.     $(SETPDEV) cif $(cif_)
  5077.  
  5078. gdevcif.$(OBJ): gdevcif.c $(PDEVH)
  5079.  
  5080. ### ------------------------- JPEG file format ------------------------- ###
  5081.  
  5082. jpeg_=gdevjpeg.$(OBJ)
  5083.  
  5084. # RGB output
  5085. jpeg.dev: $(jpeg_) sdcte.dev page.dev
  5086.     $(SETPDEV) jpeg $(jpeg_)
  5087.     $(ADDMOD) jpeg -include sdcte
  5088.  
  5089. # Gray output
  5090. jpeggray.dev: $(jpeg_) sdcte.dev page.dev
  5091.     $(SETPDEV) jpeggray $(jpeg_)
  5092.     $(ADDMOD) jpeggray -include sdcte
  5093.  
  5094. gdevjpeg.$(OBJ): gdevjpeg.c $(stdio__h) $(PDEVH)\
  5095.  $(sdct_h) $(sjpeg_h) $(stream_h) $(strimpl_h) jpeglib.h
  5096.  
  5097. ### ------------------------- MIFF file format ------------------------- ###
  5098. ### Right now we support only 24-bit direct color, but we might add more ###
  5099. ### formats in the future.                                               ###
  5100.  
  5101. miff_=gdevmiff.$(OBJ)
  5102.  
  5103. miff24.dev: $(miff_) page.dev
  5104.     $(SETPDEV) miff24 $(miff_)
  5105.  
  5106. gdevmiff.$(OBJ): gdevmiff.c $(PDEVH)
  5107.  
  5108. ### --------------------------- MGR devices ---------------------------- ###
  5109. ### Note: these drivers were contributed by a user: please contact       ###
  5110. ###       Carsten Emde (carsten@ce.pr.net.ch) if you have questions.     ###
  5111.  
  5112. MGR=gdevmgr.$(OBJ) gdevpccm.$(OBJ)
  5113.  
  5114. gdevmgr.$(OBJ): gdevmgr.c $(PDEVH) $(gdevpccm_h) gdevmgr.h
  5115.  
  5116. mgrmono.dev: $(MGR) page.dev
  5117.     $(SETPDEV) mgrmono $(MGR)
  5118.  
  5119. mgrgray2.dev: $(MGR) page.dev
  5120.     $(SETPDEV) mgrgray2 $(MGR)
  5121.  
  5122. mgrgray4.dev: $(MGR) page.dev
  5123.     $(SETPDEV) mgrgray4 $(MGR)
  5124.  
  5125. mgrgray8.dev: $(MGR) page.dev
  5126.     $(SETPDEV) mgrgray8 $(MGR)
  5127.  
  5128. mgr4.dev: $(MGR) page.dev
  5129.     $(SETPDEV) mgr4 $(MGR)
  5130.  
  5131. mgr8.dev: $(MGR) page.dev
  5132.     $(SETPDEV) mgr8 $(MGR)
  5133.  
  5134. ### ------------------------- PCX file formats ------------------------- ###
  5135.  
  5136. pcx_=gdevpcx.$(OBJ) gdevpccm.$(OBJ)
  5137.  
  5138. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h) $(gxlum_h)
  5139.  
  5140. pcxmono.dev: $(pcx_) page.dev
  5141.     $(SETPDEV) pcxmono $(pcx_)
  5142.  
  5143. pcxgray.dev: $(pcx_) page.dev
  5144.     $(SETPDEV) pcxgray $(pcx_)
  5145.  
  5146. pcx16.dev: $(pcx_) page.dev
  5147.     $(SETPDEV) pcx16 $(pcx_)
  5148.  
  5149. pcx256.dev: $(pcx_) page.dev
  5150.     $(SETPDEV) pcx256 $(pcx_)
  5151.  
  5152. pcx24b.dev: $(pcx_) page.dev
  5153.     $(SETPDEV) pcx24b $(pcx_)
  5154.  
  5155. pcxcmyk.dev: $(pcx_) page.dev
  5156.     $(SETPDEV) pcxcmyk $(pcx_)
  5157.  
  5158. # The 2-up PCX device is here only as an example, and for testing.
  5159. pcx2up.dev: $(LIB_MAK) $(ECHOGS_XE) gdevp2up.$(OBJ) page.dev pcx256.dev
  5160.     $(SETPDEV) pcx2up gdevp2up.$(OBJ)
  5161.     $(ADDMOD) pcx2up -include pcx256
  5162.  
  5163. gdevp2up.$(OBJ): gdevp2up.c $(AK)\
  5164.  $(gdevpccm_h) $(gdevprn_h) $(gxclpage_h)
  5165.  
  5166. ### ------------------- Portable Bitmap file formats ------------------- ###
  5167. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  5168.  
  5169. pxm_=gdevpbm.$(OBJ)
  5170.  
  5171. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gscdefs_h) $(gxlum_h)
  5172.  
  5173. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  5174.  
  5175. pbm.dev: $(pxm_) page.dev
  5176.     $(SETPDEV) pbm $(pxm_)
  5177.  
  5178. pbmraw.dev: $(pxm_) page.dev
  5179.     $(SETPDEV) pbmraw $(pxm_)
  5180.  
  5181. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  5182.  
  5183. pgm.dev: $(pxm_) page.dev
  5184.     $(SETPDEV) pgm $(pxm_)
  5185.  
  5186. pgmraw.dev: $(pxm_) page.dev
  5187.     $(SETPDEV) pgmraw $(pxm_)
  5188.  
  5189. # PGM with automatic optimization to PBM if this is possible.
  5190.  
  5191. pgnm.dev: $(pxm_) page.dev
  5192.     $(SETPDEV) pgnm $(pxm_)
  5193.  
  5194. pgnmraw.dev: $(pxm_) page.dev
  5195.     $(SETPDEV) pgnmraw $(pxm_)
  5196.  
  5197. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  5198.  
  5199. ppm.dev: $(pxm_) page.dev
  5200.     $(SETPDEV) ppm $(pxm_)
  5201.  
  5202. ppmraw.dev: $(pxm_) page.dev
  5203.     $(SETPDEV) ppmraw $(pxm_)
  5204.  
  5205. # PPM with automatic optimization to PGM or PBM if possible.
  5206.  
  5207. pnm.dev: $(pxm_) page.dev
  5208.     $(SETPDEV) pnm $(pxm_)
  5209.  
  5210. pnmraw.dev: $(pxm_) page.dev
  5211.     $(SETPDEV) pnmraw $(pxm_)
  5212.  
  5213. ### Portable inKmap (CMYK internally, converted to PPM=RGB at output time)
  5214.  
  5215. pkm.dev: $(pxm_) page.dev
  5216.     $(SETPDEV) pkm $(pxm_)
  5217.  
  5218. pkmraw.dev: $(pxm_) page.dev
  5219.     $(SETPDEV) pkmraw $(pxm_)
  5220.  
  5221. ### --------------- Portable Network Graphics file format --------------- ###
  5222. ### Requires libpng 0.81 and zlib 0.95 (or more recent versions).         ###
  5223. ### See libpng.mak and zlib.mak for more details.                         ###
  5224.  
  5225. png_=gdevpng.$(OBJ) gdevpccm.$(OBJ)
  5226.  
  5227. gdevpng.$(OBJ): gdevpng.c $(gdevprn_h) $(gdevpccm_h) $(gscdefs_h) $(PSRC)png.h
  5228.     $(CCCP) gdevpng.c
  5229.  
  5230. pngmono.dev: libpng.dev $(png_) page.dev
  5231.     $(SETPDEV) pngmono  $(png_)
  5232.     $(ADDMOD) pngmono  -include libpng
  5233.  
  5234. pnggray.dev: libpng.dev $(png_) page.dev
  5235.     $(SETPDEV) pnggray  $(png_)
  5236.     $(ADDMOD) pnggray  -include libpng
  5237.  
  5238. png16.dev: libpng.dev $(png_) page.dev
  5239.     $(SETPDEV) png16  $(png_)
  5240.     $(ADDMOD) png16  -include libpng
  5241.  
  5242. png256.dev: libpng.dev $(png_) page.dev
  5243.     $(SETPDEV) png256  $(png_)
  5244.     $(ADDMOD) png256  -include libpng
  5245.  
  5246. png16m.dev: libpng.dev $(png_) page.dev
  5247.     $(SETPDEV) png16m  $(png_)
  5248.     $(ADDMOD) png16m  -include libpng
  5249.  
  5250. ### ---------------------- PostScript image format ---------------------- ###
  5251. ### These devices make it possible to print Level 2 files on a Level 1    ###
  5252. ###   printer, by converting them to a bitmap in PostScript format.       ###
  5253.  
  5254. ps_=gdevpsim.$(OBJ)
  5255.  
  5256. gdevpsim.$(OBJ): gdevpsim.c $(PDEVH)
  5257.  
  5258. psmono.dev: $(ps_) page.dev
  5259.     $(SETPDEV) psmono $(ps_)
  5260.  
  5261. psgray.dev: $(ps_) page.dev
  5262.     $(SETPDEV) psgray $(ps_)
  5263.  
  5264. # Someday there will be RGB and CMYK variants....
  5265.  
  5266. ### -------------------------- SGI RGB pixmaps -------------------------- ###
  5267.  
  5268. sgirgb_=gdevsgi.$(OBJ)
  5269.  
  5270. gdevsgi.$(OBJ): gdevsgi.c $(PDEVH) gdevsgi.h
  5271.  
  5272. sgirgb.dev: $(sgirgb_) page.dev
  5273.     $(SETPDEV) sgirgb $(sgirgb_)
  5274.  
  5275. ### -------------------- Plain or TIFF fax encoding --------------------- ###
  5276. ###    Use -sDEVICE=tiffg3 or tiffg4 and                  ###
  5277. ###      -r204x98 for low resolution output, or              ###
  5278. ###      -r204x196 for high resolution output                  ###
  5279. ###    These drivers recognize 3 page sizes: letter, A4, and B4.      ###
  5280.  
  5281. gdevtifs_h=gdevtifs.h
  5282.  
  5283. tfax_=gdevtfax.$(OBJ)
  5284. tfax.dev: $(tfax_) cfe.dev lzwe.dev rle.dev tiffs.dev
  5285.     $(SETMOD) tfax $(tfax_)
  5286.     $(ADDMOD) tfax -include cfe lzwe rle tiffs
  5287.  
  5288. gdevtfax.$(OBJ): gdevtfax.c $(PDEVH)\
  5289.  $(gdevtifs_h) $(scfx_h) $(slzwx_h) $(srlx_h) $(strimpl_h)
  5290.  
  5291. ### Plain G3/G4 fax with no header
  5292.  
  5293. faxg3.dev: tfax.dev
  5294.     $(SETDEV) faxg3 -include tfax
  5295.  
  5296. faxg32d.dev: tfax.dev
  5297.     $(SETDEV) faxg32d -include tfax
  5298.  
  5299. faxg4.dev: tfax.dev
  5300.     $(SETDEV) faxg4 -include tfax
  5301.  
  5302. ### ---------------------------- TIFF formats --------------------------- ###
  5303.  
  5304. tiffs_=gdevtifs.$(OBJ)
  5305. tiffs.dev: $(tiffs_) page.dev
  5306.     $(SETMOD) tiffs $(tiffs_)
  5307.     $(ADDMOD) tiffs -include page
  5308.  
  5309. gdevtifs.$(OBJ): gdevtifs.c $(PDEVH) $(stdio__h) $(time__h) \
  5310.  $(gdevtifs_h) $(gscdefs_h) $(gstypes_h)
  5311.  
  5312. # Black & white, G3/G4 fax
  5313.  
  5314. tiffcrle.dev: tfax.dev
  5315.     $(SETDEV) tiffcrle -include tfax
  5316.  
  5317. tiffg3.dev: tfax.dev
  5318.     $(SETDEV) tiffg3 -include tfax
  5319.  
  5320. tiffg32d.dev: tfax.dev
  5321.     $(SETDEV) tiffg32d -include tfax
  5322.  
  5323. tiffg4.dev: tfax.dev
  5324.     $(SETDEV) tiffg4 -include tfax
  5325.  
  5326. # Black & white, LZW compression
  5327.  
  5328. tifflzw.dev: tfax.dev
  5329.     $(SETDEV) tifflzw -include tfax
  5330.  
  5331. # Black & white, PackBits compression
  5332.  
  5333. tiffpack.dev: tfax.dev
  5334.     $(SETDEV) tiffpack -include tfax
  5335.  
  5336. # RGB, no compression
  5337.  
  5338. tiffrgb_=gdevtfnx.$(OBJ)
  5339.  
  5340. tiff12nc.dev: $(tiffrgb_) tiffs.dev
  5341.     $(SETPDEV) tiff12nc $(tiffrgb_)
  5342.     $(ADDMOD) tiff12nc -include tiffs
  5343.  
  5344. tiff24nc.dev: $(tiffrgb_) tiffs.dev
  5345.     $(SETPDEV) tiff24nc $(tiffrgb_)
  5346.     $(ADDMOD) tiff24nc -include tiffs
  5347.  
  5348. gdevtfnx.$(OBJ): gdevtfnx.c $(PDEVH) $(gdevtifs_h)
  5349. #    Copyright (C) 1990, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  5350. # This file is part of Aladdin Ghostscript.
  5351. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  5352. # or distributor accepts any responsibility for the consequences of using it,
  5353. # or for whether it serves any particular purpose or works at all, unless he
  5354. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  5355. # License (the "License") for full details.
  5356. # Every copy of Aladdin Ghostscript must include a copy of the License,
  5357. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  5358. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  5359. # under certain conditions described in the License.  Among other things, the
  5360. # License requires that the copyright notice and this notice be preserved on
  5361. # all copies.
  5362.  
  5363. # Partial makefile common to all Unix configurations.
  5364.  
  5365. # This is the last part of the makefile for Unix configurations.
  5366. # Since Unix make doesn't have an 'include' facility, we concatenate
  5367. # the various parts of the makefile together by brute force (in tar_cat).
  5368.  
  5369. # Define the name of this makefile.
  5370. UNIXTAIL_MAK=unixtail.mak
  5371.  
  5372. # The following prevents GNU make from constructing argument lists that
  5373. # include all environment variables, which can easily be longer than
  5374. # brain-damaged system V allows.
  5375.  
  5376. .NOEXPORT:
  5377.  
  5378. # -------------------------------- Library -------------------------------- #
  5379.  
  5380. ## The Unix platforms
  5381.  
  5382. # We have to include a test for the existence of sys/time.h,
  5383. # because some System V platforms don't have it.
  5384.  
  5385. # Define pipes as a separable feature.
  5386.  
  5387. pipe_=gdevpipe.$(OBJ)
  5388. pipe.dev: $(UNIXTAIL_MAK) $(ECHOGS_XE) $(pipe_)
  5389.     $(SETMOD) pipe $(pipe_)
  5390.     $(ADDMOD) pipe -iodev pipe
  5391.  
  5392. gdevpipe.$(OBJ): gdevpipe.c $(AK) $(errno__h) $(stdio__h) $(string__h) \
  5393.   $(gserror_h) $(gsmemory_h) $(gstypes_h) $(gxiodev_h) $(stream_h)
  5394.  
  5395. # Unix platforms other than System V, and also System V Release 4
  5396. # (SVR4) platforms.
  5397. unix__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_unifs.$(OBJ) gp_unifn.$(OBJ)
  5398. unix_.dev: $(unix__)
  5399.     $(SETMOD) unix_ $(unix__)
  5400.  
  5401. gp_unix.$(OBJ): gp_unix.c $(AK) $(string__h) $(gx_h) $(gsexit_h) $(gp_h) \
  5402.   $(time__h)
  5403.  
  5404. # System V platforms other than SVR4, which lack some system calls,
  5405. # but have pipes.
  5406. sysv__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_unifs.$(OBJ) gp_unifn.$(OBJ) gp_sysv.$(OBJ)
  5407. sysv_.dev: $(sysv__)
  5408.     $(SETMOD) sysv_ $(sysv__)
  5409.  
  5410. gp_sysv.$(OBJ): gp_sysv.c $(stdio__h) $(time__h) $(AK)
  5411.  
  5412. # -------------------------- Auxiliary programs --------------------------- #
  5413.  
  5414. $(ANSI2KNR_XE): ansi2knr.c
  5415.     $(CCA2K) $(O)$(ANSI2KNR_XE) ansi2knr.c
  5416.  
  5417. $(ECHOGS_XE): echogs.c $(AK)
  5418.     $(CCAUX) $(O)$(ECHOGS_XE) echogs.c
  5419.  
  5420. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  5421. # produces a buggy executable.
  5422. $(GENARCH_XE): genarch.c $(AK) $(stdpre_h)
  5423.     $(CCAUX) $(O)$(GENARCH_XE) genarch.c
  5424.  
  5425. $(GENCONF_XE): genconf.c $(AK) $(stdpre_h)
  5426.     $(CCAUX) $(O)$(GENCONF_XE) genconf.c
  5427.  
  5428. $(GENINIT_XE): geninit.c $(AK) $(stdio__h) $(string__h)
  5429.     $(CCAUX) $(O)$(GENINIT_XE) geninit.c
  5430.  
  5431. # Query the environment to construct gconfig_.h.
  5432. # The "else true; is required because Ultrix's implementation of sh -e
  5433. # terminates execution of a command if any error occurs, even if the command
  5434. # traps the error with ||.
  5435. INCLUDE=/usr/include
  5436. gconfig_.h: $(UNIXTAIL_MAK) $(ECHOGS_XE)
  5437.     ./echogs -w gconfig_.h -x 2f2a -s This file was generated automatically. -s -x 2a2f
  5438.     if ( test -f $(INCLUDE)/dirent.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_DIRENT_H; else true; fi
  5439.     if ( test -f $(INCLUDE)/ndir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_NDIR_H; else true; fi
  5440.     if ( test -f $(INCLUDE)/sys/dir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_DIR_H; else true; fi
  5441.     if ( test -f $(INCLUDE)/sys/ndir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_NDIR_H; else true; fi
  5442.     if ( test -f $(INCLUDE)/sys/time.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_TIME_H; else true; fi
  5443.     if ( test -f $(INCLUDE)/sys/times.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_TIMES_H; else true; fi
  5444.  
  5445. # ----------------------------- Main program ------------------------------ #
  5446.  
  5447. ### Library files and archive
  5448.  
  5449. LIB_ARCHIVE_ALL=$(LIB_ALL) $(DEVS_ALL)\
  5450.  gsnogc.$(OBJ) gconfig.$(OBJ) gscdefs.$(OBJ)
  5451.  
  5452. # Build an archive for the library only.
  5453. # This is not used in a standard build.
  5454. GSLIB_A=$(GS)lib.a
  5455. $(GSLIB_A): $(LIB_ARCHIVE_ALL)
  5456.     rm -f $(GSLIB_A)
  5457.     $(AR) $(ARFLAGS) $(GSLIB_A) $(LIB_ARCHIVE_ALL)
  5458.     $(RANLIB) $(GSLIB_A)
  5459.  
  5460. ### Interpreter main program
  5461.  
  5462. INT_ARCHIVE_ALL=imainarg.$(OBJ) imain.$(OBJ) $(INT_ALL) $(DEVS_ALL)\
  5463.  gconfig.$(OBJ) gscdefs.$(OBJ)
  5464. XE_ALL=gs.$(OBJ) $(INT_ARCHIVE_ALL)
  5465.  
  5466. # Build a library archive for the entire interpreter.
  5467. # This is not used in a standard build.
  5468. GS_A=$(GS).a
  5469. $(GS_A): $(INT_ARCHIVE_ALL)
  5470.     rm -f $(GS_A)
  5471.     $(AR) $(ARFLAGS) $(GS_A) $(INT_ARCHIVE_ALL)
  5472.     $(RANLIB) $(GS_A)
  5473.  
  5474. # Here is the final link step.  The stuff with LD_RUN_PATH is for SVR4
  5475. # systems with dynamic library loading; I believe it's harmless elsewhere.
  5476. # The resetting of the environment variables to empty strings is for SCO Unix,
  5477. # which has limited environment space.
  5478. $(GS_XE): ld.tr echogs $(XE_ALL)
  5479.     ./echogs -w ldt.tr -n - $(CCLD) $(LDFLAGS) $(XLIBDIRS) -o $(GS_XE)
  5480.     ./echogs -a ldt.tr -n -s gs.$(OBJ) -s
  5481.     cat ld.tr >>ldt.tr
  5482.     ./echogs -a ldt.tr -s - $(EXTRALIBS) -lm
  5483.     LD_RUN_PATH=$(XLIBDIR); export LD_RUN_PATH; \
  5484.     XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
  5485.     FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
  5486.     DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
  5487.     DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
  5488.     DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= \
  5489.     $(SH) <ldt.tr
  5490. #    Copyright (C) 1994, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  5491. # This file is part of Aladdin Ghostscript.
  5492. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  5493. # or distributor accepts any responsibility for the consequences of using it,
  5494. # or for whether it serves any particular purpose or works at all, unless he
  5495. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  5496. # License (the "License") for full details.
  5497. # Every copy of Aladdin Ghostscript must include a copy of the License,
  5498. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  5499. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  5500. # under certain conditions described in the License.  Among other things, the
  5501. # License requires that the copyright notice and this notice be preserved on
  5502. # all copies.
  5503.  
  5504. # Partial makefile common to all Unix and Desqview/X configurations.
  5505.  
  5506. # This is the very last part of the makefile for these configurations.
  5507. # Since Unix make doesn't have an 'include' facility, we concatenate
  5508. # the various parts of the makefile together by brute force (in tar_cat).
  5509.  
  5510. # Define a rule for building profiling configurations.
  5511. pg:
  5512.     make GENOPT='' CFLAGS='-pg -O $(GCFLAGS) $(XCFLAGS)' LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11' CCLEAF='$(CCC)'
  5513.  
  5514. # Define a rule for building debugging configurations.
  5515. debug:
  5516.     make GENOPT='-DDEBUG' CFLAGS='-g -O $(GCFLAGS) $(XCFLAGS)'
  5517.  
  5518. # The rule for gconfigv.h is here because it is shared between Unix and
  5519. # DV/X environments.
  5520. gconfigv.h: unix-end.mak $(MAKEFILE) $(ECHOGS_XE)
  5521.     $(EXP)echogs -w gconfigv.h -x 23 define USE_ASM -x 2028 -q $(USE_ASM)-0 -x 29
  5522.     $(EXP)echogs -a gconfigv.h -x 23 define USE_FPU -x 2028 -q $(FPU_TYPE)-0 -x 29
  5523.     $(EXP)echogs -a gconfigv.h -x 23 define EXTEND_NAMES 0$(EXTEND_NAMES)
  5524.  
  5525. # The following rules are equivalent to what tar_cat does.
  5526. # The rm -f is so that we don't overwrite a file that `make'
  5527. # may currently be reading from.
  5528. GENERIC_MAK_LIST=$(GS_MAK) $(LIB_MAK) $(INT_MAK) $(JPEG_MAK) $(LIBPNG_MAK) $(ZLIB_MAK) $(DEVS_MAK)
  5529. UNIX_MAK_LIST=dvx-gcc.mak unixansi.mak unix-cc.mak unix-gcc.mak
  5530.  
  5531. unix.mak: $(UNIX_MAK_LIST)
  5532.  
  5533. DVX_GCC_MAK=$(VERSION_MAK) dgc-head.mak dvx-head.mak $(GENERIC_MAK_LIST) dvx-tail.mak unix-end.mak
  5534. dvx-gcc.mak: $(DVX_GCC_MAK)
  5535.     rm -f dvx-gcc.mak
  5536.     $(CAT) $(DVX_GCC_MAK) >dvx-gcc.mak
  5537.  
  5538. UNIXANSI_MAK=$(VERSION_MAK) ansihead.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  5539. unixansi.mak: $(UNIXANSI_MAK)
  5540.     rm -f unixansi.mak
  5541.     $(CAT) $(UNIXANSI_MAK) >unixansi.mak
  5542.  
  5543. UNIX_CC_MAK=$(VERSION_MAK) cc-head.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  5544. unix-cc.mak: $(UNIX_CC_MAK)
  5545.     rm -f unix-cc.mak
  5546.     $(CAT) $(UNIX_CC_MAK) >unix-cc.mak
  5547.  
  5548. UNIX_GCC_MAK=$(VERSION_MAK) gcc-head.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  5549. unix-gcc.mak: $(UNIX_GCC_MAK)
  5550.     rm -f unix-gcc.mak
  5551.     $(CAT) $(UNIX_GCC_MAK) >unix-gcc.mak
  5552.  
  5553. # Installation
  5554.  
  5555. TAGS:
  5556.     etags -t *.c *.h
  5557.  
  5558. install: install-exec install-scripts install-data
  5559.  
  5560. # The sh -c in the rules below is required because Ultrix's implementation
  5561. # of sh -e terminates execution of a command if any error occurs, even if
  5562. # the command traps the error with ||.
  5563.  
  5564. install-exec: $(GS)
  5565.     -mkdir $(bindir)
  5566.     $(INSTALL_PROGRAM) $(GS) $(bindir)/$(GS)
  5567.  
  5568. install-scripts: gsnd
  5569.     -mkdir $(scriptdir)
  5570.     sh -c 'for f in gsbj gsdj gsdj500 gslj gslp gsnd bdftops font2c \
  5571. pdf2dsc pdf2ps printafm ps2ascii ps2epsi ps2pdf wftopfa ;\
  5572.     do if ( test -f $$f ); then $(INSTALL_PROGRAM) $$f $(scriptdir)/$$f; fi;\
  5573.     done'
  5574.  
  5575. MAN1_PAGES=gs pdf2dsc pdf2ps ps2ascii ps2epsi ps2pdf
  5576. install-data: gs.1
  5577.     -mkdir $(mandir)
  5578.     -mkdir $(man1dir)
  5579.     sh -c 'for f in $(MAN1_PAGES) ;\
  5580.     do if ( test -f $$f.1 ); then $(INSTALL_DATA) $$f.1 $(man1dir)/$$f.$(man1ext); fi;\
  5581.     done'
  5582.     -mkdir $(datadir)
  5583.     -mkdir $(gsdir)
  5584.     -mkdir $(gsdatadir)
  5585.     sh -c 'for f in Fontmap \
  5586. cbjc600.ppd cbjc800.ppd *.upp \
  5587. gs_init.ps gs_btokn.ps gs_ccfnt.ps gs_cff.ps gs_cidfn.ps gs_cmap.ps \
  5588. gs_diskf.ps gs_dpnxt.ps gs_dps.ps gs_dps1.ps gs_dps2.ps gs_epsf.ps \
  5589. gs_fonts.ps gs_kanji.ps gs_lev2.ps \
  5590. gs_pfile.ps gs_res.ps gs_setpd.ps gs_statd.ps \
  5591. gs_ttf.ps gs_typ42.ps gs_type1.ps \
  5592. gs_dbt_e.ps gs_iso_e.ps gs_ksb_e.ps gs_std_e.ps gs_sym_e.ps \
  5593. acctest.ps align.ps bdftops.ps caption.ps decrypt.ps docie.ps \
  5594. font2c.ps gslp.ps impath.ps landscap.ps level1.ps lines.ps \
  5595. markhint.ps markpath.ps \
  5596. packfile.ps pcharstr.ps pfbtogs.ps ppath.ps prfont.ps printafm.ps \
  5597. ps2ai.ps ps2ascii.ps ps2epsi.ps ps2image.ps \
  5598. quit.ps showchar.ps showpage.ps stcinfo.ps stcolor.ps \
  5599. traceimg.ps traceop.ps type1enc.ps type1ops.ps uninfo.ps unprot.ps \
  5600. viewcmyk.ps viewgif.ps viewjpeg.ps viewpcx.ps viewpbm.ps viewps2a.ps \
  5601. winmaps.ps wftopfa.ps wrfont.ps zeroline.ps \
  5602. gs_l2img.ps gs_pdf.ps \
  5603. pdf2dsc.ps \
  5604. pdf_base.ps pdf_draw.ps pdf_font.ps pdf_main.ps pdf_sec.ps pdf_2ps.ps \
  5605. gs_mex_e.ps gs_mro_e.ps gs_pdf_e.ps gs_wan_e.ps \
  5606. gs_pdfwr.ps ;\
  5607.     do if ( test -f $$f ); then $(INSTALL_DATA) $$f $(gsdatadir)/$$f; fi;\
  5608.     done'
  5609.     -mkdir $(docdir)
  5610.     sh -c 'for f in COPYING NEWS PUBLIC README \
  5611. bug-form.txt c-style.txt current.txt devices.txt drivers.txt fonts.txt \
  5612. helpers.txt hershey.txt history1.txt history2.txt history3.txt humor.txt \
  5613. install.txt language.txt lib.txt make.txt new-user.txt \
  5614. ps2epsi.txt ps2pdf.txt psfiles.txt public.txt \
  5615. unix-lpr.txt use.txt xfonts.txt ;\
  5616.     do if ( test -f $$f ); then $(INSTALL_DATA) $$f $(docdir)/$$f; fi;\
  5617.     done'
  5618.     -mkdir $(exdir)
  5619.     for f in alphabet.ps chess.ps cheq.ps colorcir.ps escher.ps golfer.ps \
  5620. grayalph.ps snowflak.ps tiger.ps waterfal.ps ;\
  5621.     do $(INSTALL_DATA) $$f $(exdir)/$$f ;\
  5622.     done
  5623.